source:
orxonox.OLD/trunk/src/world_entities/bsp_entity.h
@
10569
Last change on this file since 10569 was 10519, checked in by patrick, 18 years ago | |
---|---|
File size: 1.2 KB |
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" |
[10033] | 10 | #include "bsp/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 | { |
[9869] | 20 | ObjectListDeclaration(BspEntity); |
[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); |
[10519] | 28 | void setTransparency(int sort, int sortMore = 0); |
[8081] | 29 | |
[3564] | 30 | void init(); |
[9869] | 31 | |
[9059] | 32 | virtual void varChangeHandler( std::list<int> & id ); |
[4838] | 33 | |
[5509] | 34 | virtual void draw() const; |
[3762] | 35 | virtual void tick(float time); |
[5509] | 36 | virtual void collidesWith (WorldEntity* entity, const Vector& location); |
[3245] | 37 | |
[8490] | 38 | /** @returns the BspManager of this entity */ |
39 | inline BspManager* getBspManager() { return this->bspManager; } | |
40 | ||
[3245] | 41 | private: |
[8081] | 42 | BspManager* bspManager; |
[9869] | 43 | |
[9059] | 44 | std::string name; //!< store name |
45 | std::string name_write; //!< temp variable to store name | |
46 | int name_handle; //!< handle for name | |
[10519] | 47 | int sortTransparency; //!< sort transparent textures |
48 | int sortTransparencyMore; //!< sort transparent textures better | |
[1853] | 49 | }; |
50 | ||
[8081] | 51 | #endif /* _BSP_ENTITY_H */ |
Note: See TracBrowser
for help on using the repository browser.