When the shape is linked to a being, shape's position should be a reference to the being's position.
In order for collision to work, all shapes must know how to collide with all other shapes.
525526527528529530531532533534535536
_mouseLocation.x = m.getX(); _mouseLocation.y = m.getY(); POCodes.Button button = m.getButton(); Set<Pair<MouseSubscriber,HShape>> subs = _mouseSubs.get(button); for(Pair<?, ?> p : subs) { HShape region = (HShape) p.getSecond(); if(region == null || region.contains(m.getX(), m.getY())) ((MouseSubscriber) p.getFirst()).receive(m); } } } synchronized(_mouseWheelQueue) {