source:
orxonox.OLD/trunk/src/world_entities/bsp_entity.h
@
8896
Last change on this file since 8896 was 8490, checked in by patrick, 18 years ago | |
---|---|
File size: 796 bytes |
Rev | Line | |
---|---|---|
[4838] | 1 | /*! |
[8081] | 2 | * @file bsp_entity.h |
[4838] | 3 | * @brief description |
[3245] | 4 | */ |
[1853] | 5 | |
[8081] | 6 | #ifndef _BSP_ENTITY_H |
7 | #define _BSP_ENTITY_H | |
[1853] | 8 | |
[3559] | 9 | #include "world_entity.h" |
[8081] | 10 | #include "bsp_manager.h" |
[1853] | 11 | |
[8081] | 12 | #include "util/loading/factory.h" |
13 | #include "util/loading/load_param.h" | |
14 | ||
15 | ||
16 | ||
[3761] | 17 | //! A Class to ... |
[8490] | 18 | class BspEntity : public WorldEntity |
[3559] | 19 | { |
[8490] | 20 | |
[1904] | 21 | public: |
[8490] | 22 | BspEntity(const TiXmlElement* root = NULL); |
23 | virtual ~BspEntity(); | |
[4838] | 24 | |
[6512] | 25 | virtual void loadParams(const TiXmlElement* root); |
[8490] | 26 | |
[8081] | 27 | void setName(const std::string& name); |
28 | ||
[3564] | 29 | void init(); |
[4838] | 30 | |
[5509] | 31 | virtual void draw() const; |
[3762] | 32 | virtual void tick(float time); |
[5509] | 33 | virtual void collidesWith (WorldEntity* entity, const Vector& location); |
[3245] | 34 | |
[8490] | 35 | /** @returns the BspManager of this entity */ |
36 | inline BspManager* getBspManager() { return this->bspManager; } | |
37 | ||
[3245] | 38 | private: |
[8081] | 39 | BspManager* bspManager; |
[3761] | 40 | |
[1853] | 41 | }; |
42 | ||
[8081] | 43 | #endif /* _BSP_ENTITY_H */ |
Note: See TracBrowser
for help on using the repository browser.