Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2008, 2:10:11 AM (15 years ago)
Author:
landauf
Message:

merged weapon2 branch to presentation

Location:
code/branches/presentation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation

  • code/branches/presentation/src/orxonox/objects/worldentities/pawns/Pawn.h

    r2485 r2493  
    3434#include "objects/worldentities/ControllableEntity.h"
    3535#include "objects/RadarViewable.h"
     36#include "objects/weaponSystem/WeaponSystem.h"
    3637
    3738namespace orxonox
     
    7576            virtual void kill();
    7677
    77             virtual void fire();
     78            virtual void fire(WeaponMode::Enum fireMode);
    7879
    7980            virtual void postSpawn();
     81
     82            void setWeaponSlot(WeaponSlot * wSlot);
     83            WeaponSlot * getWeaponSlot(unsigned int index) const;
     84            void setWeaponPack(WeaponPack * wPack);
     85            WeaponPack * getWeaponPack(unsigned int firemode) const;
     86            void setWeaponSet(WeaponSet * wSet);
     87            WeaponSet * getWeaponSet(unsigned int index) const;
    8088
    8189            inline const WorldEntity* getWorldEntity() const
     
    111119
    112120            WeaponSystem* weaponSystem_;
     121            unsigned int fire_;
    113122
    114123            std::string spawnparticlesource_;
     
    117126    };
    118127
    119     class _OrxonoxExport PawnListener : public OrxonoxClass
     128    class _OrxonoxExport PawnListener : virtual public OrxonoxClass
    120129    {
    121130        friend class Pawn;
Note: See TracChangeset for help on using the changeset viewer.