public void refreshPlayerScores(ScubyNet.obj.World vWorld) { foreach (long id in mcoScoreBoard.Keys) { vWorld.GetPlayer(id).Score = mcoScoreBoard[id]; } }
internal void UpdateFromPacket(ScubyNet.net.PackShot voPacket) { mbCease = false; this.Position.X = voPacket.PosX; this.Position.Y = voPacket.PosY; this.Direction = voPacket.Direction; this.Radius = voPacket.Radius; this.Speed = voPacket.Speed; if (Entity.vShootspeed < 1.0) vShootspeed = this.Speed; this.ParentId = voPacket.ParentId; //<< sinnfrei, bleibt immer gleich this.Lifetime = voPacket.Lifetime; }
public override void Run(List<string> vlsParams, ScubyNet.net.Connection voConn) { lock (voConn) { foreach (string param in vlsParams) { if (param.Equals("move")) { voConn.NextAction.Thrust = true; } if (param.Equals("left")) { voConn.NextAction.Left = true; voConn.NextAction.Right = false; } if (param.Equals("right")) { voConn.NextAction.Left = false; voConn.NextAction.Right = true; } if (param.Equals("fire")) { voConn.NextAction.Fire = true; } } } }
public override void Consume(ScubyNet.obj.World w) { w.WorldRefreshed += this.WorldRefreshed; }
public void UpdateFromPacket(ScubyNet.net.PackPlayer voPack) { this.Position.X = voPack.PosX; this.Position.Y = voPack.PosY; this.Direction = voPack.Direction; this.Score = voPack.Score; this.Radius = voPack.Radius; this.Speed = voPack.Speed; this.RotationSpeed = voPack.RotationSpeed; this.Left = voPack.Left; this.Right = voPack.Right; this.Thrust = voPack.Thrust; this.Fire = voPack.Fire; }