Example #1
0
 public override bool allowedCollision(PhysicalObject callingPhysicalObject)
 {
     if (callingPhysicalObject is Obstacle)
     {
         return(false);
     }
     return(true);
 }
Example #2
0
 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);