예제 #1
0
 void IStarcraftBot.onPlayerLeft(SWIG.BWAPI.Player player)
 {
     if (ActivePlayers.ContainsKey(player.getName()))
     {
         ActivePlayers.Remove(player.getName());
     }
 }
예제 #2
0
 public virtual void onPlayerLeft(Player player) {
   bwapiPINVOKE.AIModule_onPlayerLeft(swigCPtr, Player.getCPtr(player));
 }
예제 #3
0
 public virtual void onReceiveText(Player player, string text) {
   bwapiPINVOKE.AIModule_onReceiveText(swigCPtr, Player.getCPtr(player), text);
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
 }
예제 #4
0
 public virtual bool isVisible(Player player) {
   bool ret = bwapiPINVOKE.Unit_isVisible__SWIG_1(swigCPtr, Player.getCPtr(player));
   return ret;
 }
 void IStarcraftBot.onPlayerLeft(SWIG.BWAPI.Player player)
 {
     //throw new NotImplementedException();
 }
예제 #6
0
 void IStarcraftBot.onReceiveText(SWIG.BWAPI.Player player, string text)
 {
     //throw new NotImplementedException();
 }
예제 #7
0
        public void onReceiveText(Player player, string text)
        {

        }
예제 #8
0
        public void onPlayerLeft(Player player)
        {

        }
예제 #9
0
public bool Equals(Player obj) 
{
    if (obj == null) return false;
    return (obj.swigCPtr.Handle == this.swigCPtr.Handle);
}
예제 #10
0
 internal static HandleRef getCPtr(Player obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
예제 #11
0
 public virtual bool isEnemy(Player player) {
   bool ret = bwapiPINVOKE.Player_isEnemy(swigCPtr, Player.getCPtr(player));
   return ret;
 }
예제 #12
0
 public static Event PlayerLeft(Player player) {
   Event ret = new Event(bwapiPINVOKE.Event_PlayerLeft(Player.getCPtr(player)), true);
   return ret;
 }
예제 #13
0
 public static Event ReceiveText(Player player, string text) {
   Event ret = new Event(bwapiPINVOKE.Event_ReceiveText(Player.getCPtr(player), text), true);
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }