Last change
on this file since 10634 was
10618,
checked in by bknecht, 18 years ago
|
merged cleanup into trunk (only improvements)
|
File size:
1.2 KB
|
Line | |
---|
1 | /*! |
---|
2 | * @file bsp_entity.h |
---|
3 | * @brief description |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _BSP_ENTITY_H |
---|
7 | #define _BSP_ENTITY_H |
---|
8 | |
---|
9 | #include "world_entity.h" |
---|
10 | #include "bsp/bsp_manager.h" |
---|
11 | |
---|
12 | #include "util/loading/factory.h" |
---|
13 | #include "util/loading/load_param.h" |
---|
14 | |
---|
15 | |
---|
16 | |
---|
17 | //! A Class to ... |
---|
18 | class BspEntity : public WorldEntity |
---|
19 | { |
---|
20 | ObjectListDeclaration(BspEntity); |
---|
21 | public: |
---|
22 | BspEntity(const TiXmlElement* root = NULL); |
---|
23 | virtual ~BspEntity(); |
---|
24 | |
---|
25 | virtual void loadParams(const TiXmlElement* root); |
---|
26 | |
---|
27 | void setName(const std::string& name); |
---|
28 | void setTransparency(int sort, int sortMore = 0); |
---|
29 | |
---|
30 | void init(); |
---|
31 | |
---|
32 | virtual void varChangeHandler( std::list<int> & id ); |
---|
33 | |
---|
34 | virtual void draw() const; |
---|
35 | virtual void tick(float time); |
---|
36 | virtual void collidesWith (WorldEntity* entity, const Vector& location); |
---|
37 | |
---|
38 | /** @returns the BspManager of this entity */ |
---|
39 | inline BspManager* getBspManager() { return this->bspManager; } |
---|
40 | |
---|
41 | private: |
---|
42 | BspManager* bspManager; |
---|
43 | |
---|
44 | std::string name; //!< store name |
---|
45 | std::string name_write; //!< temp variable to store name |
---|
46 | int name_handle; //!< handle for name |
---|
47 | int sortTransparency; //!< sort transparent textures |
---|
48 | int sortTransparencyMore; //!< sort transparent textures better |
---|
49 | }; |
---|
50 | |
---|
51 | #endif /* _BSP_ENTITY_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.