public override bool allowedCollision(PhysicalObject callingPhysicalObject) { if (callingPhysicalObject is Obstacle) { return(false); } return(true); }
public override bool allowedCollision(PhysicalObject callingPhysicalObject) { return(true); // slenderman can be anywhere... }
/// <summary> /// returns wether the callingPhysicalObject (the active entity trying to enter a tile) can occupy the same Tile as the "passive" physicalObject already present /// </summary> /// <param name="callingPhysicalObject"></param> /// <returns></returns> public abstract bool allowedCollision(PhysicalObject callingPhysicalObject);