本文整理汇总了Java中rescuecore2.standard.entities.Human.getID方法的典型用法代码示例。如果您正苦于以下问题:Java Human.getID方法的具体用法?Java Human.getID怎么用?Java Human.getID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类rescuecore2.standard.entities.Human
的用法示例。
在下文中一共展示了Human.getID方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: calc
import rescuecore2.standard.entities.Human; //导入方法依赖的package包/类
@Override
public HumanDetector calc() {
Human transportHuman = this.agentInfo.someoneOnBoard();
if (transportHuman != null) {
logger.debug("someoneOnBoard:" + transportHuman);
this.result = transportHuman.getID();
return this;
}
if (this.result != null) {
Human target = (Human) this.worldInfo.getEntity(this.result);
if (!isValidHuman(target)) {
logger.debug("Invalid Human:" + target + " ==>reset target");
this.result = null;
}
}
if (this.result == null) {
this.result = calcTarget();
}
return this;
}
示例2: calcTarget
import rescuecore2.standard.entities.Human; //导入方法依赖的package包/类
private EntityID calcTarget() {
List<Human> rescueTargets = filterRescueTargets(this.worldInfo.getEntitiesOfType(CIVILIAN));
List<Human> rescueTargetsInCluster = filterInCluster(rescueTargets);
List<Human> targets = rescueTargetsInCluster;
if (targets.isEmpty())
targets = rescueTargets;
logger.debug("Targets:"+targets);
if (!targets.isEmpty()) {
targets.sort(new DistanceSorter(this.worldInfo, this.agentInfo.me()));
Human selected = targets.get(0);
logger.debug("Selected:"+selected);
return selected.getID();
}
return null;
}
示例3: MessageHuman
import rescuecore2.standard.entities.Human; //导入方法依赖的package包/类
public MessageHuman(int messageID, Human human)
{
super(messageID);
humanID = human.getID();
humanHP = human.getHP();
humanBuriedness = human.getBuriedness();
humanDamage = human.getDamage();
humanPosition = human.getPosition();
}
示例4: ActionRescue
import rescuecore2.standard.entities.Human; //导入方法依赖的package包/类
public ActionRescue(TacticsAmbulance tactics, Human human) {
this(tactics, human.getID());
}