Commits

David Stone  committed 1ec64db

Removed a false requirement for a Client to be a network client.

  • Participants
  • Parent commits 08f1fd3

Comments (0)

Files changed (2)

File source/clients/battle.cpp

 
 }	// namespace
 
-void Battle::handle_end (network::Client const & client, Result const result) const {
+void Battle::handle_end (Client const & client, Result const result) const {
 	client.print_with_time_stamp(std::cout, to_string(result) + " a battle vs. " + opponent());
 	if (result == Result::lost) {
 		pl::write_team(predict_foe_team(client.detailed()), generate_team_file_name(random_engine));

File source/clients/battle.hpp

 #include "../pokemon/species_forward.hpp"
 
 namespace technicalmachine {
+class Client;
 class DetailedStats;
 class Evaluate;
 class Gender;
 		void handle_send_out (Party switcher, uint8_t slot, uint8_t index, std::string const & nickname, Species species, Gender gender, uint8_t level);
 		void handle_set_pp (Party changer, uint8_t slot, uint8_t pp);
 		void handle_fainted (Party fainter, uint8_t slot);
-		void handle_end (network::Client const & client, Result const result) const;
+		void handle_end (Client const & client, Result const result) const;
 		std::string const & opponent() const;
 		Battle(Battle const &) = delete;
 		Battle & operator= (Battle const &) = delete;