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