Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 16, 2010, 12:37:09 PM (14 years ago)
Author:
dafrick
Message:

Documenting and cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/pickup/items/InvisiblePickup.h

    r7545 r7547  
    4040#include <string>
    4141
    42 #include <worldentities/pawns/Pawn.h>
    43 #include "worldentities/StaticEntity.h"
    4442#include "pickup/Pickup.h"
    4543
     
    4947    @brief
    5048        A pickup that makes the Pawn invisible.
    51         There are 2 parameters that can be chosen:
    52         - The <b>activation type</b> It can be chosen to be either <em>immediate</em> or <em>onUse</em>. The activation type essentially (as indicated by the name) defines when the Pawn will be invisible, either immediately after being picked up or only after the player uses it.
    53         - The <b>duration type</b> It can be chosen to be either <em>once</em> or <em>continuous</em>. For <em>once</em> the InvisiblePickup just makes the Pawn invisible for as long as it is used, for <em>continuous</em> the Pawn is invisible for the specified duration.
    54         - The <b>duration</b> Specifies how long (in seconds) the invisibility lasts.
     49        There are 3 parameters that can be chosen:
     50        - The @b activationType It can be chosen to be either <em>immediate</em> or <em>onUse</em>. The activation type essentially (as indicated by the name) defines when the Pawn will be invisible, either immediately after being picked up or only after the player uses it. The default is <em>immediate</em>.
     51        - The @b durationType< It can be chosen to be either <em>once</em> or <em>continuous</em>. For <em>once</em> the InvisiblePickup just makes the Pawn invisible for as long as it is used, for <em>continuous</em> the Pawn is invisible for the specified duration. The default is <em>once</em>.
     52        - The @b duration Specifies how long (in seconds) the invisibility lasts. The default is 0.
    5553
    56         An examle of a XML implementation of a InvisiblePickup would be:
     54        An example of a XML implementation of a InvisiblePickup would be:
    5755        @code
    58         <HealthPickup
     56        <InvisiblePickup
    5957            activationType = "immediate"
    6058            durationType = "continuous"
     
    8381            @return Returns if the Pawn is invisible.
    8482            */
    85             inline bool getInvisibility(bool)
     83            inline bool getInvisibility(bool) const
    8684                { return this->invisible_; }
    8785            /**
     
    8987            @return Returns the time in seconds the InvisibiltyPickup lasts.
    9088            */
    91             inline float getDuration(void)
     89            inline float getDuration(void) const
    9290                { return this->duration_; }
    9391
    9492        protected:
    95             void initializeIdentifier(void);
     93            void initializeIdentifier(void); //!< Initializes the PickupIdentifier of this pickup.
    9694
    9795            bool setInvisible(bool invisibility); //!< Set the Pawn to be invisible or visible again.
Note: See TracChangeset for help on using the changeset viewer.