Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/world_entities/src/world_entities/weapons/aiming_turret.h @ 5527

Last change on this file since 5527 was 5527, checked in by bensch, 19 years ago

world_entities: new AimingTurret added.
This turret aims a Target that is the nearest one, and shoots in its direction

File size: 599 bytes
RevLine 
[4827]1/*!
[5527]2 * @file aiming_turret.h
[3618]3*/
4
5
[5527]6#ifndef _AIMING_TURRET_H
7#define _AIMING_TURRET_H
[3618]8
9#include "weapon.h"
10
[5527]11class AimingTurret : public Weapon
[4934]12  {
[4827]13  public:
[5527]14    AimingTurret (WeaponManager* weaponManager);
15    AimingTurret(const TiXmlElement* root);
16    virtual ~AimingTurret ();
[3618]17
[4973]18    void init();
19    void loadParams(const TiXmlElement* root);
20
[4827]21    virtual void activate();
22    virtual void deactivate();
[3618]23
[4964]24    virtual void tick(float dt);
[4827]25    virtual void fire();
26    virtual void destroy();
[3618]27
[5500]28    virtual void draw() const;
[3752]29
[4827]30  private:
[5527]31    PNode*          target;
[4934]32  };
[5511]33
[5527]34#endif /* _AIMING_TURRET_H */
Note: See TracBrowser for help on using the repository browser.