From c2b823beca5d24afbac2c0489837eb7ec93bfbd3 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sat, 25 Jun 2005 17:05:50 +0000 Subject: [PATCH] reading evidence --- bot/bot.cpp | 5 +++++ bot/bot.h | 1 + 2 files changed, 6 insertions(+) diff --git a/bot/bot.cpp b/bot/bot.cpp index dd51632..6a48602 100644 --- a/bot/bot.cpp +++ b/bot/bot.cpp @@ -198,6 +198,11 @@ void Bot::updateWorld(){ if (input == "ev/") break; istringstream evidence(input); + int world; + evidence >> input; + evidence >> input; + evidence >> world; + _evidence[world] = input; } getline(cin,input); diff --git a/bot/bot.h b/bot/bot.h index 1c40b44..efe373f 100644 --- a/bot/bot.h +++ b/bot/bot.h @@ -98,6 +98,7 @@ class Bot { __gnu_cxx::hash_map _intersections; __gnu_cxx::hash_map _players; __gnu_cxx::hash_map _banks; + std::map _evidence; std::map _playerTypeNames; std::map _playerTypes; std::string _name; -- 2.39.2