Last change
on this file since 2102 was
2101,
checked in by chris, 20 years ago
|
orxonox/branches/chris: Finished the "GETITTOCOMPILE" project… compiling should work now, but linking is a different story
|
File size:
665 bytes
|
Rev | Line | |
---|
[2068] | 1 | |
---|
| 2 | #ifndef TRACK_H |
---|
| 3 | #define TRACK_H |
---|
| 4 | |
---|
[2101] | 5 | #include "stdincl.h" |
---|
| 6 | |
---|
[2068] | 7 | class Track |
---|
| 8 | { |
---|
| 9 | private: |
---|
| 10 | Uint32 ID; |
---|
| 11 | Vector* offset; |
---|
| 12 | Vector* end; |
---|
[2080] | 13 | Uint32 nextID; |
---|
[2068] | 14 | |
---|
| 15 | public: |
---|
[2101] | 16 | Track (); |
---|
[2080] | 17 | Track (Uint32 number, Uint32 next, Vector* start, Vector* finish); |
---|
[2068] | 18 | ~Track (); |
---|
| 19 | |
---|
[2080] | 20 | virtual void post_enter (WorldEntity* entity); // handle coordinate transition in here !!! (when dist < 0 or dist > lasttracklenght) |
---|
| 21 | virtual void post_leave (WorldEntity* entity); |
---|
| 22 | virtual void tick (float deltaT); |
---|
[2068] | 23 | virtual void map_camera (Location* lookat, Placement* camplc); |
---|
[2080] | 24 | virtual bool map_coords (Location* loc, Placement* plc); // this should return true if the entity left track boundaries |
---|
[2068] | 25 | }; |
---|
| 26 | |
---|
| 27 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.