Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/bsp_model/src/world_entities/bsp_entity.h @ 8471

Last change on this file since 8471 was 8218, checked in by patrick, 18 years ago

bsp: changed the BSPEntity name to BspEntity for more consistency, using new interface

File size: 796 bytes
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_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
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 draw() const;
32  virtual void tick(float time);
33  virtual void collidesWith (WorldEntity* entity, const Vector& location);
34
35  /** @returns the BspManager of this entity */
36  inline BspManager* getBspManager() { return this->bspManager; }
37
38 private:
39   BspManager* bspManager;
40
41};
42
43#endif /* _BSP_ENTITY_H */
Note: See TracBrowser for help on using the repository browser.