// // game.cpp // cards-proof // // Created by Ethan Miller on 4/25/12. // #include #include "game.h" using namespace std; void game::read_game_file(istream & in) { string temp; in >> temp; if (temp != "game") { return; } in >> game_name_; while (in) { getline(in, temp); if (temp == "def card") { card::set_default(in); card test_card("John Doe"); cout << test_card.name() << endl; test_card.set_attribute("type", "geek"); cout << test_card.get_string_attribute("type"); } else if (temp == "def cost") { cost::set_default(in); cost test_cost("2LWM"); cout << test_cost.to_str() << endl; } } }