|
Britbot
|
00001 #region #Usings 00002 00003 using Pirates; 00004 00005 #endregion 00006 00007 namespace Britbot 00008 { 00014 internal class NoTarget : ITarget 00015 { 00016 #region Interface Implementations 00017 00023 public Score GetScore(Group origin) 00024 { 00025 return new Score(this, TargetType.NoTarget, 0, 0, 1, 0, 0); 00026 } 00027 00032 public Location GetLocation() 00033 { 00034 return new Location(0, 0); 00035 } 00036 00042 public Direction GetDirection(Group origin) 00043 { 00044 Logger.Write("GDNTR NT"); 00045 return Direction.NOTHING; 00046 } 00047 00055 public bool Equals(ITarget operandB) 00056 { 00057 if (operandB is NoTarget) 00058 return true; 00059 return false; 00060 } 00061 00062 public TargetType GetTargetType() 00063 { 00064 return TargetType.NoTarget; 00065 } 00066 00071 public string GetDescription() 00072 { 00073 return "NoTarget"; 00074 } 00075 00080 public void TargetAssignmentEvent() 00081 { 00082 } 00083 00087 public void TargetDeAssignmentEvent() 00088 { 00089 } 00090 00091 #endregion 00092 } 00093 }
1.7.6.1