oplaTech About Teaching Archive
Oplatek's external memory

Pogamut events


1)
@EventListener(eventClass = BotDamaged.class)
public void bodyDamaged(BotDamaged myDamagedEvent) {

}
2) @ObjectClassEventListner(objectClass = Player.class, event Class = WorldObjectAppearedEvent.class | UpdatedEvent.class | DisapperaedEvent.class)

3) DistanceUtils.getNearest(world.getAll(NavPoint.class).values(), info.getLocation())

4)fwMap.getNearestItem(Item.class, info.getNearestNavPoint())

5) if(navigation.isNavigating()) {
// do nothing
}
else {
Player target = players.getNearestVisiblePlayer() ;
if(target!= null) {
navigation.navigate(target);
} else { // search}
}


6)
weaponPref.addGeneraPreff
weaponPref.addDistanceProj


CTF- Capture the flag
3.3.1-SNAPSHOT for FlagInfo ctx

flag can be (HOME| HELD|DROPPED)


navigation.navigate(ctx.getCtf().getEnemyBase())
navigation.navigate(ctx.getCtf().getOurBase())