By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,852 Members | 2,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,852 IT Pros & Developers. It's quick & easy.

C++ Game Implimentation

P: 1
What is this line in this code for a game meant for?

g1.teraform( 50);

************************************************** **********************************

int main( ) {

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




meet(g1.PlayerOne, g1.PlayerTwo);

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

g1.teraform( 50);

cout << g1.Location << endl;

int s = g1.PlayerOne.getStrength( );
Sep 22 '06 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,916
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.
Sep 22 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.