本文整理汇总了C++中TCODZip::getFloat方法的典型用法代码示例。如果您正苦于以下问题:C++ TCODZip::getFloat方法的具体用法?C++ TCODZip::getFloat怎么用?C++ TCODZip::getFloat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TCODZip
的用法示例。
在下文中一共展示了TCODZip::getFloat方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: load
void LightningBolt::load(TCODZip &zip) {
range = zip.getFloat();
damage = zip.getFloat();
stacks = zip.getInt();
stackSize = zip.getInt();
value = zip.getInt();
}
示例2: load
void Destructible::load(TCODZip &zip)
{
maxHp = zip.getFloat();
hp = zip.getFloat();
defense = zip.getFloat();
isImmortal = zip.getInt();
corpseName = strdup(zip.getString());
}
示例3: load
void Destructible::load(TCODZip &zip) {
maxHp = zip.getFloat();
hp = zip.getFloat();
baseDefense = zip.getFloat();
totalDefense = zip.getFloat();
corpseName = strdup(zip.getString());
xp = zip.getInt();
}
示例4: load
void Destructible::load(TCODZip &zip) {
maxHp = zip.getFloat();
hp = zip.getFloat();
defense = zip.getFloat();
corpseName = _strdup(zip.getString());
maxAp = zip.getInt();
ap = zip.getInt();
}
示例5: Load
void Destructible::Load(TCODZip &zip)
{
//mobileClass_.basicAttributes_.GetHealth()->SetBaseValue(zip.getFloat());
//maxHp_ = zip.getFloat();
//mobileClass_.basicAttributes_.GetHealth()->SetBaseValue(zip.getFloat());
//hp_ = zip.getFloat();
defense_ = zip.getFloat();
corpseName_ = strdup(zip.getString());
}
示例6: load
void Attacker::load(TCODZip &zip) {
basePower = zip.getFloat();
totalPower = zip.getFloat();
}
示例7: load
void Attacker::load(TCODZip &zip) {
power = zip.getFloat();
}
示例8: load
void LightningBolt::load(TCODZip &zip)
{
range=zip.getFloat();
damage=zip.getFloat();
}
示例9:
void
Destructible::Load(TCODZip& zip) {
maxHP = zip.getInt();
curHP = zip.getInt();
defense = zip.getFloat();
}