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

        }
        public void onPlayerLeft(Player player)
        {

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