当前位置: 首页>>代码示例>>C++>>正文


C++ Coordinates::getRow方法代码示例

本文整理汇总了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;
}
开发者ID:YangJJDD,项目名称:2013taller1c,代码行数:26,代码来源:Flag.cpp

示例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();
}
开发者ID:YangJJDD,项目名称:2013taller1c,代码行数:14,代码来源:FreezeSpellItem.cpp

示例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;
}
开发者ID:YangJJDD,项目名称:2013taller1c,代码行数:17,代码来源:Item.cpp

示例4: isEqual

bool Coordinates::isEqual(Coordinates coords){
	return ( (coords.getCol() == this->col) && (coords.getRow() == this->row) );
}
开发者ID:YangJJDD,项目名称:2013taller1c,代码行数:3,代码来源:Coordinates.cpp

示例5:

Coordinates::Coordinates(const Coordinates &coords) {
	changeTo(coords.getRow(), coords.getCol());
}
开发者ID:YangJJDD,项目名称:2013taller1c,代码行数:3,代码来源:Coordinates.cpp


注:本文中的Coordinates::getRow方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。