Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/bsp_entity.h @ 10108

Last change on this file since 10108 was 10033, checked in by patrick, 18 years ago

moved some of the importer sources, probably will need to rebuild the project

File size: 1.1 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 ...
18class 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
29  void init();
30
31  virtual void varChangeHandler( std::list<int> & id );
32
33  virtual void draw() const;
34  virtual void tick(float time);
35  virtual void collidesWith (WorldEntity* entity, const Vector& location);
36
37  /** @returns the BspManager of this entity */
38  inline BspManager* getBspManager() { return this->bspManager; }
39
40 private:
41   BspManager* bspManager;
42
43   std::string name;                   //!< store name
44   std::string name_write;             //!< temp variable to store name
45   int name_handle;                    //!< handle for name
46
47};
48
49#endif /* _BSP_ENTITY_H */
Note: See TracBrowser for help on using the repository browser.