hi guys,
is there an easy way to write something like the getOneObjectAtOffset-method for a specific actor-class?
Say that i have a class called "monster"
and another actor-class-object wants to get and use a monster-object next to itself with a method like this:
if i try it like this, the compiler complains about "incompatible types" because the getOneObjectAtOffset-method doesn't return a monster-class-object but some other class (which one?).
can anybody help?
public class Monster extends Actor
public Monster getMonsterInFront()
{Monster b;
b = getOneObjectAtOffset(xOffset,yOffset,Monster.class);
return b;}
