Just a quick question (I hope :D). When I did this:
It doesn't like "(Character.class)" and says "Incompatible types". What does it mean by that?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | public class PlainRock extends Actor { Room room = (Room)getWorld(); Stats stats = room.stats; public void act() { if (getIntersectingObjects(Character. class )) { //make it damage player on collision (for a health test) stats.damagePlayer( 1 ); } } } |