CPP01 1.0
|
Represents a Weapon with a specific type. [詳解]
#include <Weapon.hpp>
公開メンバ関数 | |
Weapon (std::string type) | |
Constructor for the Weapon class. | |
~Weapon () | |
Destructor for the Weapon class. | |
const std::string & | getType () const |
Gets the type of the weapon. | |
void | setType (const std::string &newType) |
Sets the type of the weapon. | |
Represents a Weapon with a specific type.
Weapon.hpp の 26 行目に定義があります。
Weapon::Weapon | ( | std::string | type | ) |
Constructor for the Weapon class.
Initializes a Weapon object with a type.
type | The type of the weapon. |
Weapon.cpp の 28 行目に定義があります。
Weapon::~Weapon | ( | ) |
Destructor for the Weapon class.
Weapon.cpp の 33 行目に定義があります。
const std::string & Weapon::getType | ( | ) | const |
Gets the type of the weapon.
Weapon.cpp の 40 行目に定義があります。
void Weapon::setType | ( | const std::string & | newType | ) |