Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 14, 2010, 11:20:16 AM (14 years ago)
Author:
dafrick
Message:

Some more documenting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/pickup/PickupRepresentation.cc

    r7533 r7540  
    3636#include "core/CoreIncludes.h"
    3737#include "core/GameMode.h"
     38#include "util/StringUtils.h"
     39
    3840#include "graphics/Billboard.h"
    39 #include "util/StringUtils.h"
     41
    4042#include "PickupManager.h"
    4143
     
    5557
    5658        this->initialize();
    57         this->setSyncMode(0x0);
     59        this->setSyncMode(0x0); // The default PickupRperesentation created by each PickupManager is not synchronised, since it only exists locally.
    5860    }
    5961
     
    6971        this->registerVariables();
    7072
    71         PickupManager::getInstance().registerRepresentation(this); //!< Registers the PickupRepresentation with the PickupManager.
     73        PickupManager::getInstance().registerRepresentation(this); // Registers the PickupRepresentation with the PickupManager.
    7274    }
    7375
     
    107109    }
    108110
     111    /**
     112    @brief
     113        Registers the variables that need to be synchornised.
     114    */
    109115    void PickupRepresentation::registerVariables(void)
    110116    {
     
    131137        if(GameMode::isMaster())
    132138        {
    133             PickupManager::getInstance().registerRepresentation(this->pickup_->getPickupIdentifier(), this); //!< Registers the PickupRepresentation with the PickupManager through the PickupIdentifier of the Pickupable it represents.
     139            // Registers the PickupRepresentation with the PickupManager through the PickupIdentifier of the Pickupable it represents.
     140            PickupManager::getInstance().registerRepresentation(this->pickup_->getPickupIdentifier(), this);
    134141        }
    135142
     
    156163            {
    157164                COUT(4) << "PickupRepresentation: Spawner template is empty." << std::endl;
    158                 //!< If neither spawnerRepresentation nor spawnerTemplate was specified
     165                // If neither spawnerRepresentation nor spawnerTemplate was specified
    159166                return this->getDefaultSpawnerRepresentation(spawner);
    160167            }
     
    180187        Returns a pointer to the StaticEntity.
    181188    */
    182     //TODO: Possibility to define default representation through XML.
     189    //TODO: Possibility to define default representation through XML?
    183190    StaticEntity* PickupRepresentation::getDefaultSpawnerRepresentation(PickupSpawner* spawner)
    184191    {
Note: See TracChangeset for help on using the changeset viewer.