Esempio n. 1
0
 public override void ChangeState(HubrisNet net, NetState state)
 {
     if (IsFriend(net))
     {
         net.ChangeState(net, state);
     }
 }
Esempio n. 2
0
 public void ChangeState(HubrisNet net, NetState nState)
 {
     if (net == this)
     {
         State = nState;
     }
 }
Esempio n. 3
0
 public override bool Disconnect(HubrisNet net)
 {
     if (IsFriend(net))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// This method mimics the C++ "friend" declaration, by checking if the instance passed matches the singleton instance of the "owning" class
 /// </summary>
 protected override bool IsFriend(HubrisNet net)
 {
     if (net == HubrisNet.Instance)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Esempio n. 5
0
 public abstract bool Connect(HubrisNet net);
Esempio n. 6
0
 protected abstract bool IsFriend(HubrisNet net);
Esempio n. 7
0
 public override void Send(HubrisNet net)
 {
     if (IsFriend(net))
     {
     }
 }
Esempio n. 8
0
 public override void Receive(HubrisNet net)
 {
     if (IsFriend(net))
     {
     }
 }
Esempio n. 9
0
 public abstract void ChangeState(HubrisNet net, NetState state);
Esempio n. 10
0
 public abstract void Receive(HubrisNet net);
Esempio n. 11
0
 public abstract void Send(HubrisNet net);
Esempio n. 12
0
 public abstract bool Disconnect(HubrisNet net);