Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/playability/src/world_entities/npcs/space_turret.h @ 9991

Last change on this file since 9991 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 932 bytes
Line 
1/*!
2 * @file space_turret.h
3 * @brief description
4*/
5
6#ifndef _SPACE_TURRET_H
7#define _SPACE_TURRET_H
8
9#include "npcs/npc.h"
10
11#include <string>
12#include <list>
13
14
15class Weapon;
16
17//! A Class to ...
18class SpaceTurret : public NPC
19{
20  ObjectListDeclaration(SpaceTurret);
21
22public:
23  SpaceTurret(const TiXmlElement* root = NULL);
24  virtual ~SpaceTurret();
25
26  virtual void loadParams(const TiXmlElement* root);
27  virtual void varChangeHandler( std::list< int > & id );
28
29
30  void setWeaponLeft(const std::string& wLeft);
31  void setWeaponRight(const std::string& wRight);
32
33  virtual void postSpawn ();
34  virtual void leftWorld ();
35
36  virtual void destroy(WorldEntity* killer);
37
38  virtual void draw() const;
39  virtual void tick(float time);
40
41private:
42  void init();
43
44
45private:
46  PNode  weaponHolder[2];
47  Weapon *left, *right;
48
49  std::string wLeft;
50  std::string wRight;
51  int wLeftHandle;
52  int wRightHandle;
53};
54
55#endif /* _SPACE_TURRET_H */
Note: See TracBrowser for help on using the repository browser.