public Player(string i_PlayerName, ePlayerType i_PlayerType, ePlayerNumber i_PlayerNumber, ePlayerColor i_PlayerColor, int i_PlayerScore = k_InitialScore)
 {
     r_PlayerName   = i_PlayerName;
     r_PlayerType   = i_PlayerType;
     r_PlayerNumber = i_PlayerNumber;
     m_PlayerScore  = i_PlayerScore;
     r_PlayerColor  = i_PlayerColor;
 }
 public Player(Player i_Other)
 {
     this.r_PlayerName   = i_Other.r_PlayerName;
     this.r_PlayerType   = i_Other.r_PlayerType;
     this.r_PlayerNumber = i_Other.r_PlayerNumber;
     this.r_PlayerColor  = i_Other.r_PlayerColor;
     this.m_PlayerScore  = i_Other.m_PlayerScore;
 }
 public void PlayerSwitch(int a)
 {
     if (a == 1)
     {
         m_PlayerNumber = ePlayerNumber.PlayerOne;
     }
     else
     {
         m_PlayerNumber = ePlayerNumber.PlayerTwo;
     }
 }
        public ePlayerNumber getOpponentPlayer()
        {
            ePlayerNumber opponentPlayer = ePlayerNumber.None;

            if (r_PlayerNumber == ePlayerNumber.Player1)
            {
                opponentPlayer = ePlayerNumber.Player2;
            }
            else if (r_PlayerNumber == ePlayerNumber.Player2)
            {
                opponentPlayer = ePlayerNumber.Player1;
            }

            return(opponentPlayer);
        }
 public SpaceShip(GameStructure i_Game, ePlayerNumber i_PlayerNumber, string i_AssteName, SpaceShipsManager i_SpaceShipManager) : base(i_AssteName, i_Game)
 {
     SpaceShipManager  = i_SpaceShipManager;
     Bullets           = new List <Bullet>();
     ScoreAsText       = new TextAsSprite(i_Game);
     m_PlayerNumber    = i_PlayerNumber;
     Score             = 0;
     m_Speed           = 145;
     m_AssteName       = i_AssteName;
     IsShootableActive = true;
     m_SpaceShipSouls  = new List <Sprite>();
     initSouls();
     m_ShootSound = SoundFactoryMethod.CreateSound(i_Game, eSoundName.SSGunShot);
     m_LifeDie    = SoundFactoryMethod.CreateSound(Game as GameStructure, eSoundName.LifeDie);
 }