Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 26, 2011, 10:06:08 AM (13 years ago)
Author:
jo
Message:

Removing interface - no actual need for it, since only two classes are necessary to have a teamnumber. Prepared tutorial level for new HUD feature.

Location:
code/branches/gamecontent/src/orxonox/worldentities/pawns
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gamecontent/src/orxonox/worldentities/pawns/Pawn.cc

    r8942 r8951  
    6060        this->bReload_ = false;
    6161
    62         this->team_ = -1;
    6362        this->health_ = 0;
    6463        this->maxHealth_ = 0;
     
    110109    {
    111110        SUPER(Pawn, XMLPort, xmlelement, mode);
    112 
    113         XMLPortParam(Pawn, "team", setTeam, getTeam, xmlelement, mode).defaultValues(-1);
    114111
    115112        XMLPortParam(Pawn, "health", setHealth, getHealth, xmlelement, mode).defaultValues(100);
  • code/branches/gamecontent/src/orxonox/worldentities/pawns/Pawn.h

    r8942 r8951  
    3535#include "interfaces/PickupCarrier.h"
    3636#include "interfaces/RadarViewable.h"
    37 #include "interfaces/PartyMember.h"
    3837#include "worldentities/ControllableEntity.h"
    3938
     
    4140{ // tolua_export
    4241    class _OrxonoxExport Pawn // tolua_export
    43         : public ControllableEntity, public RadarViewable, public PickupCarrier//, public PartyMember
     42        : public ControllableEntity, public RadarViewable, public PickupCarrier
    4443    { // tolua_export
    4544        friend class WeaponSystem;
     
    5554                { return this->bAlive_; }
    5655
    57             inline void setTeam(int team)
    58                 { this->team_ = team; }
    59             inline float getTeam() const
    60                 { return this->team_; }
    6156
    6257            virtual void setHealth(float health);
     
    200195                { return NULL; }
    201196
    202             int team_;
    203197
    204198            float health_;
Note: See TracChangeset for help on using the changeset viewer.