1 package cz.cuni.amis.pogamut.sposh.ut2004.lib; 2 3 import cz.cuni.amis.pogamut.sposh.engine.VariableContext; 4 import cz.cuni.amis.pogamut.sposh.executor.ISense; 5 import cz.cuni.amis.pogamut.ut2004.agent.module.sensor.Senses; 6 7 /** 8 * Does bot collide with map geometry? 9 * @author Honza H. 10 */ 11 public class SenseHitWall implements ISense { 12 13 private final Senses senses; 14 15 public SenseHitWall(Senses senses) { 16 this.senses = senses; 17 } 18 19 @Override 20 public Object query(VariableContext ctx) { 21 return senses.isColliding(); 22 } 23 }