コード例 #1
0
ファイル: Player.cs プロジェクト: BalinHarma/SelfLearning
 public override bool allowedCollision(PhysicalObject callingPhysicalObject)
 {
     if (callingPhysicalObject is Obstacle)
     {
         return(false);
     }
     return(true);
 }
コード例 #2
0
 public override bool allowedCollision(PhysicalObject callingPhysicalObject)
 {
     return(true); // slenderman can be anywhere...
 }
コード例 #3
0
 /// <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);