More cleanup and remove of unneeded functions
This commit is contained in:
parent
005896b13c
commit
4c439a383e
6 changed files with 27 additions and 84 deletions
|
@ -18,29 +18,14 @@ enum class order_c : char
|
|||
INVALID
|
||||
};
|
||||
|
||||
// Movement orders
|
||||
static const order_c sk_movementOrders[] =
|
||||
{
|
||||
order_c::F, // Forward
|
||||
};
|
||||
|
||||
// Action orders
|
||||
static const order_c sk_actionOrders[] =
|
||||
{
|
||||
order_c::L, // Left
|
||||
order_c::R, // Right
|
||||
order_c::A, // Attack
|
||||
};
|
||||
|
||||
// Container for an order
|
||||
struct COrder
|
||||
{
|
||||
// Base constructor makes invalid order
|
||||
COrder()
|
||||
: unit ( unit_id_invalid )
|
||||
, order ( order_c::INVALID )
|
||||
{
|
||||
|
||||
}
|
||||
{}
|
||||
|
||||
// Unit order is for
|
||||
unit_id_t unit;
|
||||
|
@ -67,7 +52,4 @@ typedef std::vector<COrder> COrderVector;
|
|||
std::string GetStringFromOrder(const COrder& order );
|
||||
COrder GetOrderFromString( const std::string& order );
|
||||
|
||||
bool isMovementOrder( const COrder& order );
|
||||
bool isActionOrder( const COrder& order );
|
||||
|
||||
#endif //_ORDERS_H_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue