Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/chris/src/world.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: 565 bytes
RevLine 
[1853]1
2#ifndef WORLD_H
3#define WORLD_H
4
5class World {
6
7 public:
8  World ();
9  ~World ();
10
[2068]11        template<class T> T* spawn<T>(Location* loc, WorldEntity* owner);       // template to be able to spawn any derivation of WorldEntity
[1917]12
[2068]13        void time_slice (Uint32 deltaT);
14        void collide ();
15        void draw ();
16        void update (); // maps Locations to Placements
17        void calc_camera_pos (Location* loc, Placement* plc);
18       
[2080]19        void unload ();
20       
21        void load_debug_level ();
22       
[1883]23 private:
[2068]24 
25        List<WorldEntity>* entities;
26       
27                // base level data
28        Track* track;
29        Uint32 tracklen;
30        Vector* pathnodes;
[1855]31
[1853]32};
33
34#endif
Note: See TracBrowser for help on using the repository browser.