|
Zappy Server
C++ game server: world, rules, scheduler, network
|
Typed structs for the 12 AI client commands. More...
Classes | |
| struct | Broadcast |
| struct | ConnectNbr |
| struct | Eject |
| struct | Fork |
| struct | Forward |
| struct | Incantation |
| struct | Inventory |
| struct | Left |
| struct | Look |
| struct | Right |
| struct | Set |
| struct | Take |
Typedefs | |
| using | Command = std::variant< Forward, Right, Left, Look, Inventory, Broadcast, ConnectNbr, Fork, Eject, Take, Set, Incantation > |
Typed structs for the 12 AI client commands.
Zero-arg commands are empty structs. Take and Set carry a ResourceType parsed from the wire name ("linemate", "food"...). Broadcast carries the full message including spaces.
| using Ai::Command = typedef std::variant<Forward, Right, Left, Look, Inventory, Broadcast, ConnectNbr, Fork, Eject, Take, Set, Incantation> |
Definition at line 40 of file AiParser.hpp.