本文整理汇总了C++中team::current_player方法的典型用法代码示例。如果您正苦于以下问题:C++ team::current_player方法的具体用法?C++ team::current_player怎么用?C++ team::current_player使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类team
的用法示例。
在下文中一共展示了team::current_player方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
carryover::carryover(const team& t, const int gold, const bool add)
: add_ (add)
, color_(t.color())
, current_player_(t.current_player())
, gold_(gold)
, name_(t.name())
, previous_recruits_(t.recruits())
, recall_list_(t.recall_list())
, save_id_(t.save_id())
{}
示例2:
carryover::carryover(const team& t, const int gold, const bool add)
: add_ (add)
, current_player_(t.current_player())
, gold_(gold)
, previous_recruits_(t.recruits())
, recall_list_()
, save_id_(t.save_id())
, variables_(t.variables())
{
for(const unit_const_ptr & u : t.recall_list()) {
recall_list_.emplace_back();
u->write(recall_list_.back());
}
}
示例3:
carryover::carryover(const team& t, const int gold, const bool add)
: add_ (add)
, color_(t.color())
, current_player_(t.current_player())
, gold_(gold)
, name_(t.name())
, previous_recruits_(t.recruits())
, recall_list_()
, save_id_(t.save_id())
{
BOOST_FOREACH(const unit_const_ptr & u, t.recall_list()) {
recall_list_.push_back(config());
u->write(recall_list_.back());
}
}