Antkeeper  0.0.1
Namespaces | Classes | Enumerations | Functions
ant Namespace Reference

Namespaces

 gene
 
 phene
 

Classes

struct  gene_frequency_table
 Gene frequency table. More...
 
struct  gene_pool
 Pool of genes from which ant genomes can be generated. More...
 
struct  genome
 Complete set of ant genes. More...
 
struct  phenome
 Complete set of ant phenes. More...
 
struct  species
 

Enumerations

enum class  caste : std::uint8_t { queen , worker , soldier , male }
 Ant caste enumerations. More...
 
enum class  subcaste {
  nanitic , minor , media , major ,
  alate , dealate , ergatoid , brachypterous
}
 Ant subcaste enumerations. More...
 

Functions

genomecladogenesis (const gene_pool &pool, std::random_device &rng)
 Generates a genome from a gene pool. More...
 
render::modelmorphogenesis (const phenome &phenome)
 Generates a 3D model of an ant given its phenome. More...
 
entity::id create_swarm (::game &ctx)
 
void destroy_swarm (::game &ctx, entity::id swarm_eid)
 

Enumeration Type Documentation

◆ caste

enum ant::caste : std::uint8_t
strong

Ant caste enumerations.

See also
https://www.antwiki.org/wiki/Caste_Terminology
Enumerator
queen 

Queen caste type.

worker 

Worker caste type.

soldier 

Soldier caste type.

male 

Male caste type.

Definition at line 32 of file caste.hpp.

◆ subcaste

enum ant::subcaste
strong

Ant subcaste enumerations.

Enumerator
nanitic 

Worker from the queen's first batch of eggs, smaller than normal workers.

minor 

Small worker or soldier.

media 

Normal-sized worker or soldier.

major 

Large worker or soldier.

alate 

Winged queen or male.

dealate 

Dewinged queen or male.

ergatoid 

Queen or male which does not develop wings.

brachypterous 

Queen or male with short, nonfunctional wings.

Definition at line 28 of file subcaste.hpp.

Function Documentation

◆ cladogenesis()

genome * ant::cladogenesis ( const gene_pool pool,
std::random_device &  rng 
)

Generates a genome from a gene pool.

Parameters
poolGene pool.
rngRandom number generator.
Returns
New genome.

Definition at line 24 of file cladogenesis.cpp.

◆ create_swarm()

entity::id ant::create_swarm ( ::game ctx)

Definition at line 52 of file swarm.cpp.

◆ destroy_swarm()

void ant::destroy_swarm ( ::game ctx,
entity::id  swarm_eid 
)

Definition at line 170 of file swarm.cpp.

◆ morphogenesis()

render::model * ant::morphogenesis ( const phenome phenome)

Generates a 3D model of an ant given its phenome.

Parameters
phenomePhenome of an ant.
Returns
3D model of the given phenome.

Definition at line 98 of file morphogenesis.cpp.