示例#1
0
 public override bool CanAttack(Map map, Point attacked_point)
 {
     if (!map.NodeIsType<ProgramNode>(attacked_point))
         return false;
     ProgramNode attacked_node = (ProgramNode)map.GetNode(attacked_point);
     if (map.CurrentPlayer != null && attacked_node.Player == map.CurrentPlayer)
         return false;
     return true;
 }
 public override bool CanAttack(Map map, Point attacked_point)
 {
     if (!map.NodeIsType<ProgramNode>(attacked_point))
         return false;
     return true;
 }