Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/chris/src/track.h @ 2080

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
Line 
1
2#ifndef TRACK_H
3#define TRACK_H
4
5class Track
6{
7 private:
8        Uint32 ID;
9        Vector* offset;
10        Vector* end;
11        Uint32 nextID;
12       
13 public:
14  Track (Uint32 number, Uint32 next, Vector* start, Vector* finish);
15  ~Track ();
16       
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);
20        virtual void map_camera (Location* lookat, Placement* camplc);
21        virtual bool map_coords (Location* loc, Placement* plc);        // this should return true if the entity left track boundaries
22};
23
24#endif
Note: See TracBrowser for help on using the repository browser.