Last change
on this file since 2080 was
2068,
checked in by chris, 20 years ago
|
orxonox/branches/chris: First snippet of the totally revamped base system… perhaps a bit confusing at the moment, but when finished theoretically you only have to subclass the worldentity and track classes to create the game content (even the menu will be a WorldEntity I suppose)
|
File size:
316 bytes
|
Rev | Line | |
---|
[2068] | 1 | |
---|
| 2 | #ifndef CAMERA_H |
---|
| 3 | #define CAMERA_H |
---|
| 4 | |
---|
| 5 | class Camera { |
---|
| 6 | private: |
---|
| 7 | WorldEntity* bound; |
---|
| 8 | Placement actual_place; |
---|
| 9 | Placement desired_place; |
---|
| 10 | |
---|
| 11 | void update_desired_place (); |
---|
| 12 | |
---|
| 13 | public: |
---|
| 14 | Camera (); |
---|
| 15 | ~Camera (); |
---|
| 16 | |
---|
| 17 | void time_slice (float deltaT); |
---|
| 18 | apply (); |
---|
| 19 | bind (WorldEntity* entity); |
---|
| 20 | jump (Placement* plc); |
---|
| 21 | |
---|
| 22 | }; |
---|
| 23 | |
---|
| 24 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.