Damage (component)#

A component given to an entity to make it damage other entities that have the Health component.

struct Damage : public Component#

Public Functions

inline Damage(float mDamage)#

Public Members

float damage#

The damage it does (in health points).

std::vector<Entity*> immune#

Entities that should not be hurt by this attack. This can be used for having teams, or avoiding the original entity to get hurt from its own attack.