本文整理汇总了C++中TCODZip::putString方法的典型用法代码示例。如果您正苦于以下问题:C++ TCODZip::putString方法的具体用法?C++ TCODZip::putString怎么用?C++ TCODZip::putString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TCODZip
的用法示例。
在下文中一共展示了TCODZip::putString方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: save
void Gui::save(TCODZip &zip) {
zip.putInt(log.size());
for (Message **it = log.begin(); it != log.end(); it++) {
zip.putString((*it)->text);
zip.putColor(&(*it)->col);
}
}
示例2: Save
void Destructible::Save(TCODZip &zip)
{
//zip.putFloat(maxHp_);
//zip.putFloat(hp_);
zip.putFloat(defense_);
zip.putString(corpseName_);
}
示例3:
void
Actor::Save(TCODZip& zip) {
zip.putInt(x);
zip.putInt(y);
zip.putInt(code);
zip.putColor(&color);
zip.putString(name);
zip.putInt(blocks);
zip.putInt(fovOnly);
zip.putInt(destructible != nullptr);
zip.putInt(ai != nullptr);
zip.putInt(pickable != nullptr);
zip.putInt(container != nullptr);
if(destructible) {
destructible->Save(zip);
}
if(ai) {
ai->Save(zip);
}
if(pickable) {
pickable->Save(zip);
}
if(container) {
container->Save(zip);
}
}
示例4: save
void Destructible::save(TCODZip &zip)
{
zip.putFloat(maxHp);
zip.putFloat(hp);
zip.putFloat(defense);
zip.putInt(isImmortal);
zip.putString(corpseName);
}
示例5: save
void Destructible::save(TCODZip &zip) {
zip.putFloat(maxHp);
zip.putFloat(hp);
zip.putFloat(baseDefense);
zip.putFloat(totalDefense);
zip.putString(corpseName);
zip.putInt(xp);
}
示例6: save
void Actor::save(TCODZip &zip) {
zip.putInt(x);
zip.putInt(y);
zip.putInt(ch);
zip.putColor(&col);
zip.putString(name);
zip.putInt(blocks);
zip.putInt(attacker != NULL);
zip.putInt(destructible != NULL);
zip.putInt(ai != NULL);
zip.putInt(pickable != NULL);
zip.putInt(container != NULL);
if (attacker) attacker->save(zip);
if (destructible) destructible->save(zip);
if (ai) ai->save(zip);
if (pickable) pickable->save(zip);
if (container) container->save(zip);
}
示例7: save
void AiChangeEffect::save(TCODZip &zip) {
zip.putInt(Effect::AI_CHANGE);
newAi->save(zip);
zip.putColor(&color);
zip.putString(message);
}