本文整理汇总了C++中Coordinates::getRow方法的典型用法代码示例。如果您正苦于以下问题:C++ Coordinates::getRow方法的具体用法?C++ Coordinates::getRow怎么用?C++ Coordinates::getRow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Coordinates
的用法示例。
在下文中一共展示了Coordinates::getRow方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Coordinates
Flag::Flag(Entity* entity) :
Entity(entity) {
Vector3* pos = entity->getCurrentPos();
this->currentPos = new Vector3(pos->getX(), pos->getY(), pos->getZ());
Coordinates coordin = entity->getCoordinates();
this->coord = new Coordinates(coordin.getCol(), coordin.getRow());
Base base = entity->getBase();
Base* newBase = new Base(base);
this->base = newBase;
this->name = entity->getName();
this->currentTile = NULL;
this->team = entity->getTeam();
this->killedBy = entity->getKilledBy();
this->damageBuffer = 0;
this->magic = entity->getMagic();
this->walkable = entity->isWalkable();
this->attackable = entity->isAttackable();
this->hideInFog = entity->getHideInFog();
this->shield = 0;
this->removeFromGame = false;
player = "";
classname = "Flag";
life = 30;
attackable = true;
}
示例2: Item
FreezeSpellItem::FreezeSpellItem(Item* entity) : Item(entity) {
Vector3* pos = entity->getCurrentPos();
this->currentPos = new Vector3(pos->getX(), pos->getY(), pos->getZ());
Coordinates coordin = entity->getCoordinates();
this->coord = new Coordinates(coordin.getCol(), coordin.getRow());
Base base = entity->getBase();
Base* newBase = new Base(base);
this->base = newBase;
this->name = entity->getName();
this->life = entity->getLife();
this->currentTile = NULL;
this->team = entity->getTeam();
this->killedBy = entity->getKilledBy();
}
示例3: Entity
Item::Item(Item* entity) : Entity(entity) {
Vector3* pos = entity->getCurrentPos();
this->currentPos = new Vector3(pos->getX(), pos->getY(), pos->getZ());
Coordinates coordin = entity->getCoordinates();
this->coord = new Coordinates(coordin.getCol(), coordin.getRow());
Base base = entity->getBase();
Base* newBase = new Base(base);
this->base = newBase;
this->name = entity->getName();
this->life = entity->getLife();
this->currentTile = NULL;
this->team = entity->getTeam();
this->killedBy = entity->getKilledBy();
this->attackable = false;
this->walkable = true;
this->hideInFog = true;
}
示例4: isEqual
bool Coordinates::isEqual(Coordinates coords){
return ( (coords.getCol() == this->col) && (coords.getRow() == this->row) );
}
示例5:
Coordinates::Coordinates(const Coordinates &coords) {
changeTo(coords.getRow(), coords.getCol());
}