Exemple #1
0
 public override void ChangeState(HubrisNet net, NetState state)
 {
     if (IsFriend(net))
     {
         net.ChangeState(net, state);
     }
 }
Exemple #2
0
 public void ChangeState(HubrisNet net, NetState nState)
 {
     if (net == this)
     {
         State = nState;
     }
 }
Exemple #3
0
 public override bool Disconnect(HubrisNet net)
 {
     if (IsFriend(net))
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemple #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);
     }
 }
Exemple #5
0
 public abstract bool Connect(HubrisNet net);
Exemple #6
0
 protected abstract bool IsFriend(HubrisNet net);
Exemple #7
0
 public override void Send(HubrisNet net)
 {
     if (IsFriend(net))
     {
     }
 }
Exemple #8
0
 public override void Receive(HubrisNet net)
 {
     if (IsFriend(net))
     {
     }
 }
Exemple #9
0
 public abstract void ChangeState(HubrisNet net, NetState state);
Exemple #10
0
 public abstract void Receive(HubrisNet net);
Exemple #11
0
 public abstract void Send(HubrisNet net);
Exemple #12
0
 public abstract bool Disconnect(HubrisNet net);