R-Type  2
Doom but in better
Loading...
Searching...
No Matches
Behaviour Struct Reference

Represents the behaviour of an entity, including the type and a timer for timed behaviours. More...

#include <Behaviour.hpp>

Collaboration diagram for Behaviour:
Collaboration graph

Data Fields

behaviour_enum type
 
float timer
 

Detailed Description

Represents the behaviour of an entity, including the type and a timer for timed behaviours.

This structure allows an entity to have a specific behaviour type, such as moving up and down or following another entity, along with a timer that may be used for time-limited actions or behaviours.

Definition at line 20 of file Behaviour.hpp.

Field Documentation

◆ timer

float Behaviour::timer

A timer that tracks the duration of the behaviour.

Definition at line 22 of file Behaviour.hpp.

◆ type

behaviour_enum Behaviour::type

The type of behaviour the entity exhibits.

Definition at line 21 of file Behaviour.hpp.


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