- Timestamp:
- May 8, 2014, 10:16:23 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController/src/orxonox/controllers/ScriptController.h
r10046 r10047 38 38 { // tolua_export 39 39 class _OrxonoxExport ScriptController // tolua_export 40 : public ArtificialController 40 : public ArtificialController, public Tickable 41 41 { // tolua_export 42 42 public: … … 48 48 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 49 49 50 void takeControl(int ctrlid); 51 void setPlayer(PlayerInfo* player) { this->player_ = player; } 50 52 51 void set_luasrc(std::string);52 void set_controlled(ControllableEntity*);53 //void set_luasrc(std::string); 54 //void set_controlled(ControllableEntity*); 53 55 56 virtual void tick(float dt); 54 57 55 58 // LUA interface … … 59 62 60 63 static ScriptController* getScriptController(); 64 65 int getID() { return ctrlid_; } 61 66 62 /* virtual void tick(float dt);*/63 67 64 68 // tolua_end … … 66 70 67 71 private: 68 std::string luasrc; // name of the LUA-sourcefile that shall be executed->see XMLPort-function 69 70 ControllableEntity* controlled; //entity controlled by this SC 72 // name of the LUA-sourcefile that shall be executed->see XMLPort-function 73 std::string luasrc; 74 PlayerInfo* player_; 75 ControllableEntity* entity_; 76 int ctrlid_; 71 77 72 78
Note: See TracChangeset
for help on using the changeset viewer.