Ejemplo n.º 1
0
 public LobbyObject(CPlayer _player)
 {
     m_cPlayerObject = _player;
     m_cWeapon = _player.BaseWeapon;
     m_nShipWeaponIndex = 0;
     m_nShipTexture = TextureManager.Instance.LoadTexture("textures/shipselect");
     m_nWeaponTexture = TextureManager.Instance.LoadTexture("textures/weaponselect");
 }
Ejemplo n.º 2
0
        public CPlayer()
        {
            m_cBaseWeapon = new CBaseWeapon(this);
            m_cSecondaryPlayer = null;
            m_dNumLives = 3;
            m_dScore = 0;
            m_dMovementSpeed = 200.0;
            m_dCombineSpeed = 150.0;
            m_cKeyboardBindings = new KeyBindings();
            m_cGamepadBindings = new ButtonBindings();
            m_bPrimaryPlayer = false;

            // Object Factory will take care of the following
            // - playerIndex

            EventManager.Instance.RegisterEvent(EVENT_ID.PLAYER_COMBINE, this);
        }