public Player(int x, int y, PLAYERID playerId) { this.X = x; this.Y = y; this.playerId = playerId; isShooting = new bool(); isShooting = false; isKilled = new bool(); isKilled = false; direction = DIRECTION.left; switch (playerId) //ova mozda ke treba u form poso go predavam po reference sekade { case PLAYERID.player1: playerBackImg = Resources.player1b; playerProfileImg = Resources.player1l; break; case PLAYERID.player2: playerBackImg = Resources.player2b; playerProfileImg = Resources.player2l; break; case PLAYERID.player3: playerBackImg = Resources.player3b; playerProfileImg = Resources.player3l; break; } }
public void SetID(PLAYERID id) { _playerId = id; }
public int GetPlayerSelectID(PLAYERID _pid) { return(playerID[(int)_pid]); }
//↑他のクラスで呼び出すときにnew SelectManagerが返される //選択したキャラクターの情報 public void SetPlayerSelectID(PLAYERID _pid, int _id) { playerID[(int)_pid] = _id; }
//Assign a color to the player public void assignId(PLAYERID newID) { playerId = newID; }