public void onEvent(Event e) {
if(e != null && !ignoreCollisions){
if(e.getType().equals("PositionChanged") && e.getSender() != null){
checkForCollisions((PositionComponent) e.getSender());
}else if (e.getType().equals("OrientationChanged")){
OrientationChangedEvent o = (OrientationChangedEvent) e;
mask.rotate(o.getDelta());
checkForCollisions();
}
}
}