int x = this._screen.mapXToScreenX(position.getX());
int y = this._screen.mapYToScreenY(position.getY());
BeliefBase burglarBeliefs = this._map.getBurglar().getBeliefBase();
boolean observedRoom = burglarBeliefs.isObservedRoom(position.getRoomId());
if(observedRoom){
if(VisualBurglar.FLAG_SOLID_BACKGROUND == false){
this._imgFloor.draw(x, y, GraphicPlayState.SCALE);
}else{
graphics.setColor(new Color(255, 255, 102));
graphics.fillRect(
x, y,
VisualBurglar.RESOURCE_BLOCK_SIZE * GraphicPlayState.SCALE,
VisualBurglar.RESOURCE_BLOCK_SIZE * GraphicPlayState.SCALE
);
}
}else{
if(VisualBurglar.FLAG_SOLID_BACKGROUND == false){
this._imgFloor.draw(x, y, GraphicPlayState.SCALE, COLOR_FILTER_MISTAKEN);
}else{
graphics.setColor(COLOR_FILTER_MISTAKEN);
graphics.fillRect(
x, y,
VisualBurglar.RESOURCE_BLOCK_SIZE * GraphicPlayState.SCALE,
VisualBurglar.RESOURCE_BLOCK_SIZE * GraphicPlayState.SCALE
);
}
}
if(position.isTypeOf(BaseInterface.Type.FLOOR))
return;
if(burglarBeliefs.isKnownPosition(position))
position = burglarBeliefs.getKnownPosition(position.getId());
Color filter = COLOR_FILTER_KNOWN;
switch(position.getType()){
case CAMERA:
if(((Camera)position).isActive()){