Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/npcs/space_turret.h @ 9842

Last change on this file since 9842 was 9656, checked in by bensch, 18 years ago

orxonox/trunk: merged the proxy bache back with no conflicts

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