Zappy Server
C++ game server: world, rules, scheduler, network
Loading...
Searching...
No Matches
Ai Namespace Reference

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 >
 

Detailed Description

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.

See also
G-YEP-400_zappy.pdf for the AI command reference.
Resources::fromName() for wire name to ResourceType conversion.

Typedef Documentation

◆ Command

Definition at line 40 of file AiParser.hpp.