C++ Game Implimentation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brook004
    New Member
    • Sep 2006
    • 1

    #1

    C++ Game Implimentation

    What is this line in this code for a game meant for?

    g1.teraform( 50);

    *************** *************** *************** *************** *************** *********
    code:

    int main( ) {

    Game g1( parameters );
    Character p1( parameters ), p2( parameters );
    Venue forest( parameters );

    g1.setLevel(5);

    g1.setPlayerOne (p1);
    g1.setPlayerTwo (p2);

    g1.setLocation( forest);

    meet(g1.PlayerO ne, g1.PlayerTwo);

    cout << g1.PlayerOne << g1.PlayerTwo << endl;

    g1.teraform( 50);

    cout << g1.Location << endl;

    int s = g1.PlayerOne.ge tStrength( );
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Without seeing the header file this is a guess

    The terraform function of game is being called for object g1 using the parameter value 50.

    Comment

    Working...