lots of initial design for the game, and unit data

This commit is contained in:
Marc Di Luzio 2014-12-16 13:12:58 +00:00
parent 6a17e4e4c1
commit a17a9db2ad
5 changed files with 56 additions and 4 deletions

View file

@ -20,10 +20,12 @@ struct COrder
// Order command issued
order_c order;
// Basic operators
inline bool operator==( const COrder& rhs ) const;
inline bool operator!=( const COrder& rhs ) const { return !(*this==rhs); }
};
// Simple == operator
inline bool COrder::operator== ( const COrder& rhs ) const
{
return ( unit == rhs.unit ) && ( order == rhs.order );
@ -33,10 +35,8 @@ inline bool COrder::operator== ( const COrder& rhs ) const
typedef std::vector<COrder> COrderVector;
// Order strings stored as simply "[unit id] [order char]"
// string <--> order conversion functions
std::string GetStringFromOrder( COrder& order );
COrder GetOrderFromString( std::string order );
#endif //_ORDERS_H_