Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | Public Attributes | List of all members
core::pplmn::OwnedMove Struct Reference

Represents a move owned by a peoplemon. More...

#include <OwnedMove.hpp>

Public Member Functions

 OwnedMove ()
 Creates an empty Unknown move with 0 pp. More...
 
 OwnedMove (MoveId id)
 Creates the move from the given id and sets PP accordingly. More...
 
void restorePP (int pp)
 Restores some pp to the move. More...
 

Public Attributes

MoveId id
 The id of the move. More...
 
unsigned int curPP
 The current pp of the move. More...
 
unsigned int maxPP
 The pp to restore to. Increased max pp is stored here. More...
 

Detailed Description

Represents a move owned by a peoplemon.

Definition at line 17 of file OwnedMove.hpp.

Constructor & Destructor Documentation

◆ OwnedMove() [1/2]

core::pplmn::OwnedMove::OwnedMove ( )

Creates an empty Unknown move with 0 pp.

Definition at line 8 of file OwnedMove.cpp.

◆ OwnedMove() [2/2]

core::pplmn::OwnedMove::OwnedMove ( MoveId  id)

Creates the move from the given id and sets PP accordingly.

Parameters
idThe move to set to

Definition at line 13 of file OwnedMove.cpp.

Member Function Documentation

◆ restorePP()

void core::pplmn::OwnedMove::restorePP ( int  pp)

Restores some pp to the move.

Parameters
ppThe amount to restore

Definition at line 18 of file OwnedMove.cpp.

Member Data Documentation

◆ curPP

unsigned int core::pplmn::OwnedMove::curPP

The current pp of the move.

Definition at line 22 of file OwnedMove.hpp.

◆ id

MoveId core::pplmn::OwnedMove::id

The id of the move.

Definition at line 19 of file OwnedMove.hpp.

◆ maxPP

unsigned int core::pplmn::OwnedMove::maxPP

The pp to restore to. Increased max pp is stored here.

Definition at line 25 of file OwnedMove.hpp.


The documentation for this struct was generated from the following files: