#include <string>
#include <vector>
#include "gui/gui.hpp"
Go to the source code of this file.
Classes |
class | Order |
| Contains all informations and functions about orders. More...
|
Defines |
#define | STEPLENGTH 13 |
#define | STEPS 11 |
Typedefs |
typedef enum OrderTypes | ORDERTYPE |
| Contains order types.
|
Enumerations |
enum | OrderTypes {
COLLECT,
GATHER,
OBUILD,
WORK,
REFUEL,
DIG,
CRAFT,
WALK,
RESEARCH,
REPAIR,
COMBAT
} |
| Contains order types.
More...
|
Functions |
void | buildOrderUI () |
| Build order user interface.
|
void | setVisibleOrders (bool visible) |
| Show/hide information about fort orders.
|
void | update_orders () |
| Update all orders during game loop.
|
int | find_order (std::string name) |
| Find selected order by name.
|
void | drawWorkers (int index) |
| Draw available/assigned workers for selected orders.
|
void | show_orders (int start=0) |
| Show orders menu.
|
Define Documentation
Typedef Documentation
Enumeration Type Documentation
Contains order types.
- Enumerator:
COLLECT |
|
GATHER |
|
OBUILD |
|
WORK |
|
REFUEL |
|
DIG |
|
CRAFT |
|
WALK |
|
RESEARCH |
|
REPAIR |
|
COMBAT |
|
Function Documentation
Build order user interface.
void drawWorkers |
( |
int |
index | ) |
|
Draw available/assigned workers for selected orders.
- Parameters:
-
int find_order |
( |
std::string |
name | ) |
|
Find selected order by name.
- Parameters:
-
- Returns:
- Order index or -1
void setVisibleOrders |
( |
bool |
visible | ) |
|
Show/hide information about fort orders.
- Parameters:
-
visible | If true, show orders, otherwise hide menu. |
void show_orders |
( |
int |
start | ) |
|
Show orders menu.
- Parameters:
-
start | From which element starts. Default 0. |
Update all orders during game loop.