Style Slasher
A dressup combat roguelike created by Scrungle Studios for the 2025 Swinburne Capstone project.
Slasher.Enemy.BaseEnemy Class Reference
Inheritance diagram for Slasher.Enemy.BaseEnemy:
Inheritance graph
Collaboration diagram for Slasher.Enemy.BaseEnemy:
Collaboration graph

Properties

override Vector2 Facing [get]
 
- Properties inherited from Slasher.Entity.BaseEntity
Vector2 Facing [get]
 Returns the normalised X and Z direction vector that the entity was last facing, in world space.
 
virtual List< CircleColliders [get]
 

Private Types

enum  MovementTypes { Grounded , Flying }
 
enum  AttackTypes { Melee , Ranged }
 

Private Member Functions

void Awake ()
 
void OnEnable ()
 
void OnDisable ()
 
void Start ()
 
void Update ()
 
void LateUpdate ()
 
void MoveEnemy ()
 
void AttackRoutine ()
 

Private Attributes

float _minAttackRange
 
float _maxAttackRange
 
int _movementType
 
int _attackType
 
float _distanceFromPlayer
 
Vector2 _destination
 

Additional Inherited Members

- Public Member Functions inherited from Slasher.Entity.BaseEntity
bool IsWithin (ICollideWithCircle shape)
 Returns if the given shape collides with the entity.
 
void TakeDamage (float damage)
 Deals damage to the entity.
 
void Awake ()
 
void OnEnable ()
 
void OnDisable ()
 
- Public Attributes inherited from Slasher.Entity.BaseEntity
EntityBlueprintSO Blueprint
 This entity's blueprint, from which, its parameters will be constructed.
 
EntityParamManager Parameters
 This entity's parameters.
 
- Events inherited from Slasher.Entity.BaseEntity
Action< float > OnDamage = (_) => { }
 Event called when damage is dealt, with the amount of damage dealt.
 

Member Enumeration Documentation

◆ AttackTypes

Enumerator
Melee 
Ranged 

◆ MovementTypes

Enumerator
Grounded 
Flying 

Member Function Documentation

◆ AttackRoutine()

void Slasher.Enemy.BaseEnemy.AttackRoutine ( )
private

◆ Awake()

void Slasher.Enemy.BaseEnemy.Awake ( )
private

◆ LateUpdate()

void Slasher.Enemy.BaseEnemy.LateUpdate ( )
private

◆ MoveEnemy()

void Slasher.Enemy.BaseEnemy.MoveEnemy ( )
private

◆ OnDisable()

void Slasher.Enemy.BaseEnemy.OnDisable ( )
private

◆ OnEnable()

void Slasher.Enemy.BaseEnemy.OnEnable ( )
private

◆ Start()

void Slasher.Enemy.BaseEnemy.Start ( )
private

◆ Update()

void Slasher.Enemy.BaseEnemy.Update ( )
private

Member Data Documentation

◆ _attackType

int Slasher.Enemy.BaseEnemy._attackType
private

◆ _destination

Vector2 Slasher.Enemy.BaseEnemy._destination
private

◆ _distanceFromPlayer

float Slasher.Enemy.BaseEnemy._distanceFromPlayer
private

◆ _maxAttackRange

float Slasher.Enemy.BaseEnemy._maxAttackRange
private

◆ _minAttackRange

float Slasher.Enemy.BaseEnemy._minAttackRange
private

◆ _movementType

int Slasher.Enemy.BaseEnemy._movementType
private

Property Documentation

◆ Facing

override Vector2 Slasher.Enemy.BaseEnemy.Facing
get

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