Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageActuator.h
| Context not available. | |||||
| #ifndef __KX_NETWORKMESSAGEACTUATOR_H__ | #ifndef __KX_NETWORKMESSAGEACTUATOR_H__ | ||||
| #define __KX_NETWORKMESSAGEACTUATOR_H__ | #define __KX_NETWORKMESSAGEACTUATOR_H__ | ||||
| #include "STR_String.h" | #include <string> | ||||
| #include "SCA_IActuator.h" | #include "SCA_IActuator.h" | ||||
| #include "NG_NetworkMessage.h" | |||||
| class KX_NetworkMessageActuator : public SCA_IActuator | class KX_NetworkMessageActuator : public SCA_IActuator | ||||
| { | { | ||||
| Py_Header | Py_Header | ||||
| bool m_lastEvent; | bool m_lastEvent; | ||||
| class NG_NetworkScene* m_networkscene; // needed for replication | class KX_NetworkMessageScene *m_networkscene; // needed for replication | ||||
| STR_String m_toPropName; | std::string m_toPropName; | ||||
| STR_String m_subject; | std::string m_subject; | ||||
| bool m_bPropBody; | bool m_bPropBody; | ||||
| STR_String m_body; | std::string m_body; | ||||
| public: | public: | ||||
| KX_NetworkMessageActuator( | KX_NetworkMessageActuator( | ||||
| SCA_IObject* gameobj, | SCA_IObject *gameobj, | ||||
| NG_NetworkScene* networkscene, | KX_NetworkMessageScene *networkscene, | ||||
| const STR_String &toPropName, | const std::string &toPropName, | ||||
| const STR_String &subject, | const std::string &subject, | ||||
| int bodyType, | int bodyType, | ||||
| const STR_String &body); | const std::string &body); | ||||
| virtual ~KX_NetworkMessageActuator(); | virtual ~KX_NetworkMessageActuator(); | ||||
| virtual bool Update(); | virtual bool Update(); | ||||
| virtual CValue* GetReplica(); | virtual CValue *GetReplica(); | ||||
| virtual void Replace_NetworkScene(NG_NetworkScene *val) | virtual void Replace_NetworkScene(KX_NetworkMessageScene *val) | ||||
| { | { | ||||
| m_networkscene= val; | m_networkscene = val; | ||||
| }; | }; | ||||
| /* ------------------------------------------------------------ */ | |||||
| /* Python interface ------------------------------------------- */ | |||||
| /* ------------------------------------------------------------ */ | |||||
| }; | }; | ||||
| #endif /* __KX_NETWORKMESSAGEACTUATOR_H__ */ | #endif /* __KX_NETWORKMESSAGEACTUATOR_H__ */ | ||||
| Context not available. | |||||