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
|
Line | |
---|
1 | |
---|
2 | #ifndef WORLD_H |
---|
3 | #define WORLD_H |
---|
4 | |
---|
5 | class World { |
---|
6 | |
---|
7 | public: |
---|
8 | World (); |
---|
9 | ~World (); |
---|
10 | |
---|
11 | template<class T> T* spawn<T>(Location* loc, WorldEntity* owner); // template to be able to spawn any derivation of WorldEntity |
---|
12 | |
---|
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 | |
---|
19 | void unload (); |
---|
20 | |
---|
21 | void load_debug_level (); |
---|
22 | |
---|
23 | private: |
---|
24 | |
---|
25 | List<WorldEntity>* entities; |
---|
26 | |
---|
27 | // base level data |
---|
28 | Track* track; |
---|
29 | Uint32 tracklen; |
---|
30 | Vector* pathnodes; |
---|
31 | |
---|
32 | }; |
---|
33 | |
---|
34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.