Exemplo n.º 1
0
 void IStarcraftBot.onPlayerLeft(SWIG.BWAPI.Player player)
 {
     if (ActivePlayers.ContainsKey(player.getName()))
     {
         ActivePlayers.Remove(player.getName());
     }
 }
Exemplo n.º 2
0
 public virtual void onPlayerLeft(Player player) {
   bwapiPINVOKE.AIModule_onPlayerLeft(swigCPtr, Player.getCPtr(player));
 }
Exemplo n.º 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();
 }
Exemplo n.º 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();
 }
Exemplo n.º 6
0
 void IStarcraftBot.onReceiveText(SWIG.BWAPI.Player player, string text)
 {
     //throw new NotImplementedException();
 }
Exemplo n.º 7
0
        public void onReceiveText(Player player, string text)
        {

        }
Exemplo n.º 8
0
        public void onPlayerLeft(Player player)
        {

        }
Exemplo n.º 9
0
public bool Equals(Player obj) 
{
    if (obj == null) return false;
    return (obj.swigCPtr.Handle == this.swigCPtr.Handle);
}
Exemplo n.º 10
0
 internal static HandleRef getCPtr(Player obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Exemplo n.º 11
0
 public virtual bool isEnemy(Player player) {
   bool ret = bwapiPINVOKE.Player_isEnemy(swigCPtr, Player.getCPtr(player));
   return ret;
 }
Exemplo n.º 12
0
 public static Event PlayerLeft(Player player) {
   Event ret = new Event(bwapiPINVOKE.Event_PlayerLeft(Player.getCPtr(player)), true);
   return ret;
 }
Exemplo n.º 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;
 }