none
RunGame error

    General discussion

  • I was seting up the Simple3DGame::RunGame

    GameState Simple3DGame::RunGame()
    {
        // This method is called to execute a single time interval for active game play.
        // It returns the resulting state of game play after the interval has been executed.
    
    
        if (round >= 12)
        {
            m_gameActive = false;
            m_levelActive = false;
            SaveState();
        }
        else
        {
            // Time has not expired, so run one frame of game play.
    		m_playerOne->Velocity(m_controller->Velocity());
    		m_playerTwo->Velocity(m_controller->Velocity());
    
            UpdateDynamics();
    
            // Update the Camera with the player position updates from the dynamics calculations.
            m_camera->Eye(FLOAT(1.0f, 0.0f, 0.0f));
            m_camera->LookDirection(m_playerOne && m_playerTwo-);
    
    		if (m_gameActive = true && m_levelActive = false)
    		{
    
    		}
    		else if (m_gameActive = true && m_levelActive = true)
    		{
    			
    		}
        }
        return GameState::Active;
    }
    

    I keep getting this error

            E0304 no instance of overloaded function "Camera::Eye" matches the argument list  
            E1767 function "Camera::LookDirection" cannot be called with the given argument list
     E0018 expected a ')' 
      
    This is on the true part of m_gameActive = true
            E0137 expression must be a modifiable lvalue

    Sunday, May 12, 2019 4:35 AM

All replies