Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/GameLogic/SCA_NetworkMessageActuator.h
- This file was moved from source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageActuator.h.
| Show All 19 Lines | |||||
| * | * | ||||
| * The Original Code is: all of this file. | * The Original Code is: all of this file. | ||||
| * | * | ||||
| * Contributor(s): none yet. | * Contributor(s): none yet. | ||||
| * | * | ||||
| * ***** END GPL LICENSE BLOCK ***** | * ***** END GPL LICENSE BLOCK ***** | ||||
| */ | */ | ||||
| /** \file KX_NetworkMessageActuator.h | /** \file SCA_NetworkMessageActuator.h | ||||
| * \ingroup ketsjinet | * \ingroup gamelogic | ||||
| * \brief Ketsji Logic Extension: Network Message Actuator class | * \brief Network Message Actuator class | ||||
| */ | */ | ||||
| #ifndef __KX_NETWORKMESSAGEACTUATOR_H__ | #ifndef __SCA_NETWORKMESSAGEACTUATOR_H__ | ||||
| #define __KX_NETWORKMESSAGEACTUATOR_H__ | #define __SCA_NETWORKMESSAGEACTUATOR_H__ | ||||
| #include "STR_String.h" | #include "STR_String.h" | ||||
| #include "SCA_IActuator.h" | #include "SCA_IActuator.h" | ||||
| #include "NG_NetworkMessage.h" | #include "NG_NetworkMessage.h" | ||||
| class KX_NetworkMessageActuator : public SCA_IActuator | class SCA_NetworkMessageActuator : public SCA_IActuator | ||||
| { | { | ||||
| Py_Header | Py_Header | ||||
| bool m_lastEvent; | bool m_lastEvent; | ||||
| class NG_NetworkScene* m_networkscene; // needed for replication | class NG_NetworkScene* m_networkscene; // needed for replication | ||||
| STR_String m_toPropName; | STR_String m_toPropName; | ||||
| STR_String m_subject; | STR_String m_subject; | ||||
| bool m_bPropBody; | bool m_bPropBody; | ||||
| STR_String m_body; | STR_String m_body; | ||||
| public: | public: | ||||
| KX_NetworkMessageActuator( | SCA_NetworkMessageActuator( | ||||
| SCA_IObject* gameobj, | SCA_IObject* gameobj, | ||||
| NG_NetworkScene* networkscene, | NG_NetworkScene* networkscene, | ||||
| const STR_String &toPropName, | const STR_String &toPropName, | ||||
| const STR_String &subject, | const STR_String &subject, | ||||
| int bodyType, | int bodyType, | ||||
| const STR_String &body); | const STR_String &body); | ||||
| virtual ~KX_NetworkMessageActuator(); | virtual ~SCA_NetworkMessageActuator(); | ||||
| virtual bool Update(); | virtual bool Update(); | ||||
| virtual CValue* GetReplica(); | virtual CValue* GetReplica(); | ||||
| virtual void Replace_NetworkScene(NG_NetworkScene *val) | virtual void Replace_NetworkScene(NG_NetworkScene *val) | ||||
| { | { | ||||
| m_networkscene= val; | m_networkscene= val; | ||||
| }; | } | ||||
| /* ------------------------------------------------------------ */ | /* ------------------------------------------------------------ */ | ||||
| /* Python interface ------------------------------------------- */ | /* Python interface ------------------------------------------- */ | ||||
| /* ------------------------------------------------------------ */ | /* ------------------------------------------------------------ */ | ||||
| }; | }; | ||||
| #endif /* __KX_NETWORKMESSAGEACTUATOR_H__ */ | #endif /* __SCA_NETWORKMESSAGEACTUATOR_H__ */ | ||||