Last change
on this file since 2080 was
2080,
checked in by chris, 20 years ago
|
orxonox/branches/chris: Implemented basic track and spawning functionality. Added a function to convert a Rotation into a glmatrix. Implemented operator* in Rotation. Refined World, made World friend class of world_entity. Implemented camera functionality (can now be bound to the worldentity it should focus on).
|
File size:
631 bytes
|
Rev | Line | |
---|
[2068] | 1 | |
---|
| 2 | #ifndef TRACK_H |
---|
| 3 | #define TRACK_H |
---|
| 4 | |
---|
| 5 | class Track |
---|
| 6 | { |
---|
| 7 | private: |
---|
| 8 | Uint32 ID; |
---|
| 9 | Vector* offset; |
---|
| 10 | Vector* end; |
---|
[2080] | 11 | Uint32 nextID; |
---|
[2068] | 12 | |
---|
| 13 | public: |
---|
[2080] | 14 | Track (Uint32 number, Uint32 next, Vector* start, Vector* finish); |
---|
[2068] | 15 | ~Track (); |
---|
| 16 | |
---|
[2080] | 17 | virtual void post_enter (WorldEntity* entity); // handle coordinate transition in here !!! (when dist < 0 or dist > lasttracklenght) |
---|
| 18 | virtual void post_leave (WorldEntity* entity); |
---|
| 19 | virtual void tick (float deltaT); |
---|
[2068] | 20 | virtual void map_camera (Location* lookat, Placement* camplc); |
---|
[2080] | 21 | virtual bool map_coords (Location* loc, Placement* plc); // this should return true if the entity left track boundaries |
---|
[2068] | 22 | }; |
---|
| 23 | |
---|
| 24 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.