Last change
on this file since 2097 was
2096,
checked in by chris, 20 years ago
|
orxonox/branches/chris: Messed with the Player class, added stuff here and there, debug world now creates a player and bind IO to it. Added some doxygen tags.
|
File size:
639 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 | template<class T> T* spawn<T>(Placement* plc, WorldEntity* owner = NULL) |
---|
13 | |
---|
14 | void time_slice (Uint32 deltaT); |
---|
15 | void collide (); |
---|
16 | void draw (); |
---|
17 | void update (); // maps Locations to Placements |
---|
18 | void calc_camera_pos (Location* loc, Placement* plc); |
---|
19 | |
---|
20 | void unload (); |
---|
21 | |
---|
22 | void load_debug_level (); |
---|
23 | |
---|
24 | private: |
---|
25 | |
---|
26 | List<WorldEntity>* entities; |
---|
27 | |
---|
28 | // base level data |
---|
29 | Track* track; |
---|
30 | Uint32 tracklen; |
---|
31 | Vector* pathnodes; |
---|
32 | |
---|
33 | }; |
---|
34 | |
---|
35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.