- Timestamp:
- May 21, 2014, 3:28:28 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController/src/orxonox/controllers/ScriptController.h
r10065 r10066 39 39 { // tolua_export 40 40 41 /** Structure to describe a single event */ 41 42 struct event 42 43 { 44 /** Instruction for this event */ 43 45 std::string fctName; 44 float x1;45 float y1;46 float z1;47 46 48 float x2; 49 float y2; 50 float z2; 47 Vector3 v1; 48 Vector3 v2; 51 49 50 /** Time span of the event */ 52 51 float duration; 53 52 53 /** Start point in time of the event */ 54 54 float eventTime; 55 56 55 }; 57 56 … … 61 60 public: 62 61 ScriptController(Context* context); 63 64 62 virtual ~ScriptController() { } 65 63 66 //virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);67 68 64 void takeControl(int ctrlid); 69 65 void setPlayer(PlayerInfo* player) { this->player_ = player; } … … 73 69 // LUA interface 74 70 // tolua_begin 75 void moveAndLook(float xm, float ym, float zm,76 float xl, float yl, float zl, float t);77 78 71 void eventScheduler(std::string instruction, 79 72 float x1, float y1, float z1, … … 115 108 bool processing; 116 109 117 /* Data about the point to go to and what to look at */ 118 /* - Target position */ 119 Vector3 target; 120 121 /* - Time it should take to get there */ 122 float timeToTarget; 110 /* Data about the event currently being processed */ 111 /* - The event itself */ 112 event currentEvent; 123 113 124 114 /* - Time this event has been going on for */ … … 127 117 128 118 /* - Position to look at during that transition */ 129 Vector3 lookAtPosition;119 //Vector3 lookAtPosition; 130 120 131 121 };// tolua_export
Note: See TracChangeset
for help on using the changeset viewer.