nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::Side Struct Reference

A bot at war is in one of two guilds, and fights the other's players. More...

#include <war.h>

Public Attributes

std::string guild
std::string enemy
std::vector< std::string > recruits
bool leads = false
int size = 1
 How many bots are on the side, its leader with them.
float camp_x = 0.0f
float camp_z = 0.0f

Detailed Description

A bot at war is in one of two guilds, and fights the other's players.

Definition at line 15 of file war.h.

Member Data Documentation

◆ camp_x

float nanommo::Side::camp_x = 0.0f

Where the bot waits for the rest of its side to join, before the charge: its place in its side's camp, either side of where new players come in.

Definition at line 29 of file war.h.

◆ camp_z

float nanommo::Side::camp_z = 0.0f

Definition at line 30 of file war.h.

◆ enemy

std::string nanommo::Side::enemy

Definition at line 17 of file war.h.

◆ guild

std::string nanommo::Side::guild

Definition at line 16 of file war.h.

◆ leads

bool nanommo::Side::leads = false

Whether the bot is the first of its side, which leads it even when nobody else is on it.

Definition at line 24 of file war.h.

◆ recruits

std::vector<std::string> nanommo::Side::recruits

For the first bot of each side, which founds the guild and leads it, the rest of the side, by their names, whom it asks in. Empty for the rest, who say yes when it asks.

Definition at line 21 of file war.h.

◆ size

int nanommo::Side::size = 1

How many bots are on the side, its leader with them.

Definition at line 26 of file war.h.


The documentation for this struct was generated from the following file: