Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 29, 2011, 7:15:43 PM (14 years ago)
Author:
landauf
Message:

small cleanup

Location:
code/branches/presentation/src/orxonox/interfaces
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/interfaces/InterfaceCompilation.cc

    r8667 r8668  
    4242#include "core/CoreIncludes.h"
    4343
     44#include "infos/PlayerInfo.h"
     45#include "worldentities/pawns/Pawn.h"
     46
    4447namespace orxonox
    4548{
     
    6063
    6164        this->isForPlayer_ = false;
     65    }
     66
     67    void PlayerTrigger::setTriggeringPawn(Pawn* pawn)
     68    {
     69        assert(pawn);
     70        this->pawn_ = WeakPtr<Pawn>(pawn);
     71        if (pawn)
     72            this->player_ = WeakPtr<PlayerInfo>(pawn->getPlayer());
    6273    }
    6374
  • code/branches/presentation/src/orxonox/interfaces/PlayerTrigger.h

    r8667 r8668  
    3939
    4040#include "core/OrxonoxClass.h"
    41 
    42 #include "infos/PlayerInfo.h"
    43 #include "worldentities/pawns/Pawn.h"
    4441
    4542namespace orxonox
     
    8683        @param player A pointer to the Pawn that triggered the PlayerTrigger.
    8784        */
    88         inline void setTriggeringPawn(Pawn* pawn)
    89            { assert(pawn); this->player_ = WeakPtr<PlayerInfo>(pawn->getPlayer()); this->pawn_ = WeakPtr<Pawn>(pawn); }
     85        void setTriggeringPawn(Pawn* pawn);
    9086
    9187        /**
Note: See TracChangeset for help on using the changeset viewer.