Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 31, 2009, 5:03:29 PM (15 years ago)
Author:
landauf
Message:

moved overlays to modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/libraries2/src/orxonox/objects/quest/QuestEffectBeacon.cc

    r3280 r5720  
    3737#include "core/XMLPort.h"
    3838#include "core/EventIncludes.h"
    39 #include "orxonox/objects/worldentities/pawns/Pawn.h"
    40 #include "orxonox/objects/worldentities/triggers/PlayerTrigger.h"
     39#include "objects/worldentities/pawns/Pawn.h"
     40#include "objects/worldentities/triggers/PlayerTrigger.h"
    4141#include "QuestEffect.h"
    4242
     
    5252    {
    5353        RegisterObject(QuestEffectBeacon);
    54        
     54
    5555        this->status_ = QuestEffectBeaconStatus::Active;
    5656        this->times_ = INFINITE_TIME;
     
    6363    {
    6464    }
    65    
     65
    6666    /**
    6767    @brief
     
    7474        XMLPortParam(QuestEffectBeacon, "times", setTimes, getTimes, xmlelement, mode);
    7575        XMLPortObject(QuestEffectBeacon, QuestEffect, "effects", addEffect, getEffect, xmlelement, mode);
    76        
     76
    7777        COUT(3) << "New QuestEffectBeacon created." << std::endl;
    7878    }
    79    
     79
    8080    /**
    8181    @brief
     
    8585    {
    8686        SUPER(QuestEffectBeacon, processEvent, event);
    87    
     87
    8888        ORXONOX_SET_SUBCLASS_EVENT(QuestEffectBeacon, "execute", execute, event, PlayerTrigger);
    8989    }
    90    
     90
    9191    /**
    9292    @brief
     
    109109            return false;
    110110        }
    111        
     111
    112112        if(!trigger->isForPlayer()) //!< The PlayerTrigger is not exclusively for ControllableEntities which means we cannot extract one.
    113113        {
     
    123123            return false;
    124124        }
    125        
     125
    126126        //! Extract the PlayerInfo from the ControllableEntity.
    127127        PlayerInfo* player = pawn->getPlayer();
    128        
     128
    129129        if(player == NULL)
    130130        {
     
    144144        return false;
    145145    }
    146    
     146
    147147    /**
    148148    @brief
     
    159159            return false;
    160160        }
    161        
     161
    162162        if(activate)
    163163        {
     
    165165        return true;
    166166        }
    167        
     167
    168168        this->status_ = QuestEffectBeaconStatus::Inactive;
    169169        return true;
    170170    }
    171    
     171
    172172    /**
    173173    @brief
     
    186186            return true;
    187187        }
    188        
     188
    189189        this->times_ = this->times_ - 1; //!< Decrement number of times the QuestEffectBeacon can be executed.
    190190        if(this->getTimes() == 0) //!< Set the QuestEffectBeacon to inactive when the number of times it can be executed is reduced to 0.
     
    192192            this->status_ = QuestEffectBeaconStatus::Inactive;
    193193        }
    194        
    195         return true;
    196     }
    197    
     194
     195        return true;
     196    }
     197
    198198    /**
    199199    @brief
     
    212212            return false;
    213213        }
    214        
     214
    215215        this->times_ = n;
    216216        return true;
    217217    }
    218    
     218
    219219    /**
    220220    @brief
     
    238238        return true;
    239239    }
    240    
     240
    241241    /**
    242242    @brief
Note: See TracChangeset for help on using the changeset viewer.