comparison LightClone/Source/Bot.h @ 37:58a16d529d95

Refactoring code and adding events for drag and drop
author koryspansel <koryspansel@bendbroadband.com>
date Wed, 21 Sep 2011 20:30:29 -0700
parents e494c4295dba
children 2caa7c7e2cb5
comparison
equal deleted inserted replaced
36:b60cbf3fa894 37:58a16d529d95
118 /* 118 /*
119 * kSequencer 119 * kSequencer
120 */ 120 */
121 BotSequencer kSequencer; 121 BotSequencer kSequencer;
122 122
123 /*
124 * kPosition
125 */
126 Position kPosition;
127
128 /*
129 * kDirection
130 */
131 uint32 kDirection;
132
133 /*
134 * nColor
135 */
136 uint32 nColor;
137
138 /*
139 * kSize
140 */
141 D3DXVECTOR3 kSize;
142
123 public: 143 public:
124 144
125 /* 145 /*
126 * kPosition
127 */
128 Position kPosition;
129
130 /*
131 * kDirection
132 */
133 uint32 kDirection;
134
135 /*
136 * nColor
137 */
138 uint32 nColor;
139
140 /*
141 * kSize
142 */
143 D3DXVECTOR3 kSize;
144
145 public:
146
147 /*
148 * Bot 146 * Bot
149 */ 147 */
150 Bot(); 148 Bot();
151 149
152 /* 150 /*
166 164
167 /* 165 /*
168 * Reset 166 * Reset
169 */ 167 */
170 void Reset(); 168 void Reset();
169
170 /*
171 * SetPosition
172 */
173 void SetPosition(const Position& kPosition);
174
175 /*
176 * SetDirection
177 */
178 void SetDirection(uint32 nDirection);
171 179
172 /* 180 /*
173 * GetWorldPosition 181 * GetWorldPosition
174 */ 182 */
175 const D3DXVECTOR3 GetWorldPosition() const; 183 const D3DXVECTOR3 GetWorldPosition() const;
180 const D3DXVECTOR3 GetWorldOrientation() const; 188 const D3DXVECTOR3 GetWorldOrientation() const;
181 189
182 /* 190 /*
183 * AddFunction 191 * AddFunction
184 */ 192 */
185 void AddFunction(uint32 nFunction, uint32 nSize); 193 //void AddFunction(uint32 nFunction, uint32 nSize);
186 194
187 /* 195 /*
188 * Upload 196 * Upload
189 */ 197 */
190 ErrorCode Upload(Code* pCode, uint32 nCount); 198 //ErrorCode Upload(Code* pCode, uint32 nCount);
199
200 /*
201 * GetVirtualMachine
202 */
203 VirtualMachine& GetVirtualMachine();
191 204
192 /* 205 /*
193 * Update 206 * Update
194 */ 207 */
195 bool Update(float fElapsed); 208 bool Update(float fElapsed);
202 private: 215 private:
203 216
204 /* 217 /*
205 * Compile 218 * Compile
206 */ 219 */
207 ErrorCode Compile(Code* pCode, uint8* pData, uint32 nSize); 220 //ErrorCode Compile(Code* pCode, uint8* pData, uint32 nSize);
208 221
209 /* 222 /*
210 * SetupVertexBuffer 223 * SetupVertexBuffer
211 */ 224 */
212 ErrorCode SetupVertexBuffer(); 225 ErrorCode SetupVertexBuffer();