source:
orxonox.OLD/branches/single_player_map/src/world_entities/door.h
@
8874
Last change on this file since 8874 was 8874, checked in by patrick, 18 years ago | |
---|---|
File size: 509 bytes |
Rev | Line | |
---|---|---|
[8872] | 1 | #ifndef _DOOR_H |
2 | #define _DOOR_H | |
[8870] | 3 | |
4 | #include "world_entity.h" | |
5 | ||
[8872] | 6 | |
[8870] | 7 | class TiXmlElement; |
8 | ||
[8872] | 9 | |
10 | class Door : public WorldEntity | |
[8870] | 11 | { |
[8872] | 12 | public: |
13 | Door (); | |
14 | Door(const TiXmlElement* root); | |
15 | virtual ~Door (); | |
[8870] | 16 | |
[8872] | 17 | void init(); |
18 | virtual void loadParams(const TiXmlElement* root); | |
[8870] | 19 | |
[8872] | 20 | void setAnim(int animationIndex, int animPlaybackMode); |
[8870] | 21 | |
[8872] | 22 | virtual void tick (float time); |
[8870] | 23 | |
[8872] | 24 | private: |
[8874] | 25 | bool checkOpen(); |
[8870] | 26 | |
[8872] | 27 | private: |
28 | bool bOpen; //!< true if the door is open | |
[8870] | 29 | |
30 | }; | |
31 | ||
[8872] | 32 | #endif /* _DOOR_H */ |
Note: See TracBrowser
for help on using the repository browser.