2 * @file GameElement.cpp
3 * @brief
\83Q
\81[
\83\80\92\86\97v
\91f
\82Ì
\83X
\81[
\83p
\81[
\83N
\83\89\83X
\8eÀ
\91\95
10 #include "GameElement.h"
14 GameElement::GameElement(void)
20 GameElement::~GameElement(void)
26 void GameElement::WipeData(void)
29 this->description = "";
30 this->validGenerated = false;
33 NAME GameElement::GetName()
38 DESCRIPTION GameElement::GetDescription()
40 return this->description;
43 bool GameElement::IsValidGenerated(void)
45 return this->validGenerated;
48 std::string GameElement::WeightFormat(WEIGHT weight)
51 sprintf_s(buf, "%6.1fkg", weight);
52 return std::string(&buf[0]);
55 std::string GameElement::HeightFormat(HEIGHT height)
58 sprintf_s(buf, "%6.2fm", height / 100.0f);
59 return std::string(&buf[0]);