Roguelike
 All Classes Namespaces Functions Variables Typedefs Friends Pages
Public Member Functions | Public Attributes | List of all members
EnemyType Struct Reference

#include <defs.h>

Public Member Functions

bool operator== (const EnemyType &rhs) const
 

Public Attributes

int moral
 
std::vector< int > stats
 
int id
 
int sight
 
int view
 
int speed
 
std::string name
 
Tile sprite
 
MiscType corpse
 
std::vector< EquipTypeeq
 
std::vector< WeaponTypewep
 

Detailed Description

The definition for the different types of enemies. This defines the various attributes of enemies, and members of this struct are used to construct enemies.

See also
Enemy

Member Function Documentation

bool EnemyType::operator== ( const EnemyType rhs) const
inline

Comparison operator for EnemyType.

Member Data Documentation

MiscType EnemyType::corpse

The attribute used to create the member varaible corpse for enemies.

std::vector<EquipType> EnemyType::eq

A list of possible equipment that enemies can have.

See also
Enemy::generate_equipment()
int EnemyType::id

The attribute to assign the member variable id for enemies.

int EnemyType::moral

The attribute to assign the member variable moral for enemies.

std::string EnemyType::name

The attribute to assign the member variable name for enemies.

int EnemyType::sight

The attribute to assign the member variable sight for enemies.

int EnemyType::speed

The attribute to assign the member variable speed for enemies.

Tile EnemyType::sprite

The attribute to assign the member variable sprite for enemies.

std::vector<int> EnemyType::stats

The attributes to assign the member variables.

int EnemyType::view

The attribute to asisgn to the member variable view for enemies.

std::vector<WeaponType> EnemyType::wep

A list of possible weapons that enemies can have.

See also
Enemy::generate_weapon()

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