Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Dans la classe Pathfinding, fonction ValidSinglePath(), après: if(fight != null && fight.isOccuped(dirCaseID))return "stop:"+lastPos; on ajoute: */
- if(fight == null && map.getCase(lastPos).isTrigger())return "stop:"+lastPos;
- // Dans la classe Case on ajoute:
- public boolean isTrigger()
- {
- if(_onCellStop != null)
- {
- for(Action act : _onCellStop)
- {
- if(act.getID() == 0) //S'il y a une action de téléportation
- {
- return true;
- }
- }
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment