本文整理汇总了C++中TCODZip::putColor方法的典型用法代码示例。如果您正苦于以下问题:C++ TCODZip::putColor方法的具体用法?C++ TCODZip::putColor怎么用?C++ TCODZip::putColor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TCODZip
的用法示例。
在下文中一共展示了TCODZip::putColor方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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:
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);
}
}
示例3: save
void ConfusedMonsterAi::save(TCODZip &zip)
{
zip.putInt(CONFUSED_MONSTER);
zip.putInt(nbTurns);
oldAi->save(zip);
zip.putColor(&oldColor);
}
示例4: 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);
}
示例5: 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_ != NULL) attacker_->Save(zip);
if (destructible_ != NULL) destructible_->Save(zip);
if (ai_ != NULL) ai_->Save(zip);
if (pickable_ != NULL) pickable_->Save(zip);
if (container_ != NULL) container_->Save(zip);
}
示例6: save
void AiChangeEffect::save(TCODZip &zip) {
zip.putInt(Effect::AI_CHANGE);
newAi->save(zip);
zip.putColor(&color);
zip.putString(message);
}