public ClientHandler(TcpClient client, int id, GameHandler game) { Client = client; _game = game; FugamId = new FugamID(Client.GetHashCode(), id); _clientThread = new Thread(new ThreadStart(ClientThread)); ServerIO.Send(Client.GetStream(), new PacketFugamID(FugamId)); }
public Player(FugamID id, TileMap tilemap) : base(tilemap) { fid = id; y = 11; switch (fid.GameID) { case 0: x = 4; animation = new Animation(Properties.Resources.playerred, 32, 32, 55); break; case 1: x = 10; animation = new Animation(Properties.Resources.playerblue, 32, 32, 65); break; } currentImage = animation.GetCurrentImage(); }
public PacketLevel(FugamID id, string levelid) : base(id) { NewLevelId = levelid; }
public PacketPlayerPosition(FugamID id, int x, int y) : base(id) { X = x; Y = y; }
public PacketPlayers(FugamID id, List <FugamID> playerids) : base(id) { playerIDs = playerids; }
public YourPlayer(FugamID id, TileMap tm, TileMap collisionMap) : base(id, tm) { _collisonMap = collisionMap; }
public PacketFugamID(FugamID id) : base(id) { }
protected Packet(FugamID id) { FugamId = id; }