Changeset View
Changeset View
Standalone View
Standalone View
source/gameengine/GameLogic/SCA_GameActuator.h
- This file was moved from source/gameengine/Ketsji/KX_GameActuator.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_GameActuator.h | /** \file SCA_GameActuator.h | ||||
| * \ingroup ketsji | * \ingroup gamelogic | ||||
| * \brief actuator for global game stuff | * \brief actuator for global game stuff | ||||
| */ | */ | ||||
| #ifndef __KX_GAMEACTUATOR_H__ | #ifndef __SCA_GAMEACTUATOR_H__ | ||||
| #define __KX_GAMEACTUATOR_H__ | #define __SCA_GAMEACTUATOR_H__ | ||||
| #include "SCA_IActuator.h" | #include "SCA_IActuator.h" | ||||
| #include "SCA_IScene.h" /* Replace_IScene only */ | #include "SCA_IScene.h" /* Replace_IScene only */ | ||||
| #include "KX_Scene.h" /* Replace_IScene only */ | #include "KX_Scene.h" /* Replace_IScene only */ | ||||
| class KX_GameActuator : public SCA_IActuator | class SCA_GameActuator : public SCA_IActuator | ||||
| { | { | ||||
| Py_Header | Py_Header | ||||
| protected: | protected: | ||||
| int m_mode; | int m_mode; | ||||
| bool m_restart; | bool m_restart; | ||||
| STR_String m_filename; | STR_String m_filename; | ||||
| STR_String m_loadinganimationname; | STR_String m_loadinganimationname; | ||||
| class SCA_IScene* m_scene; | class SCA_IScene* m_scene; | ||||
| class KX_KetsjiEngine* m_ketsjiengine; | class KX_KetsjiEngine* m_ketsjiengine; | ||||
| public: | public: | ||||
| enum KX_GameActuatorMode | enum KX_GameActuatorMode { | ||||
| { | |||||
| KX_GAME_NODEF = 0, | KX_GAME_NODEF = 0, | ||||
| KX_GAME_LOAD, | KX_GAME_LOAD, | ||||
| KX_GAME_START, | KX_GAME_START, | ||||
| KX_GAME_RESTART, | KX_GAME_RESTART, | ||||
| KX_GAME_QUIT, | KX_GAME_QUIT, | ||||
| KX_GAME_SAVECFG, | KX_GAME_SAVECFG, | ||||
| KX_GAME_LOADCFG, | KX_GAME_LOADCFG, | ||||
| KX_GAME_MAX | KX_GAME_MAX | ||||
| }; | }; | ||||
| KX_GameActuator(SCA_IObject* gameobj, | SCA_GameActuator(SCA_IObject* gameobj, | ||||
| int mode, | int mode, | ||||
| const STR_String& filename, | const STR_String& filename, | ||||
| const STR_String& loadinganimationname, | const STR_String& loadinganimationname, | ||||
| SCA_IScene* scene, | SCA_IScene* scene, | ||||
| KX_KetsjiEngine* ketsjiEngine); | KX_KetsjiEngine* ketsjiEngine); | ||||
| virtual ~KX_GameActuator(); | virtual ~SCA_GameActuator(); | ||||
| virtual CValue* GetReplica(); | virtual CValue* GetReplica(); | ||||
| virtual bool Update(); | virtual bool Update(); | ||||
| virtual void Replace_IScene(SCA_IScene *val) | virtual void Replace_IScene(SCA_IScene *val) | ||||
| { | { | ||||
| m_scene= val; | m_scene= val; | ||||
| }; | } | ||||
| /* --------------------------------------------------------------------- */ | /* --------------------------------------------------------------------- */ | ||||
| /* Python interface ---------------------------------------------------- */ | /* Python interface ---------------------------------------------------- */ | ||||
| /* --------------------------------------------------------------------- */ | /* --------------------------------------------------------------------- */ | ||||
| }; /* end of class KX_GameActuator */ | }; /* end of class SCA_GameActuator */ | ||||
| #endif | #endif | ||||