Finalise implementation of reading in a game from a string

This commit is contained in:
Marc Di Luzio 2014-12-16 13:13:02 +00:00
parent 002c1e5927
commit a75e6e290d
8 changed files with 178 additions and 125 deletions

View file

@ -6,6 +6,8 @@
#include "gametypes.h"
#define ORDER_FORMATTER "ORDER:%c id:%u"
// Type for all orders ( as a char )
enum class command_c : char
{
@ -45,8 +47,6 @@ inline bool COrder::operator== ( const COrder& rhs ) const
// Typedef a vector of orders
typedef std::vector<COrder> COrderVector;
#define ORDER_FORMATTER "ORDER:%c id:%u"
// string <--> order conversion functions
std::string GetStringFromOrder(const COrder& order );
COrder GetOrderFromString( const std::string& order );