group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
WallhackAbility Class Reference

Activates a timed "see enemies through walls" reveal. More...

#include <WallhackAbility.hpp>

Inheritance diagram for WallhackAbility:
[legend]
Collaboration diagram for WallhackAbility:
[legend]

Public Member Functions

AbilityType type () const override
float cooldown () const override
bool canUse (entt::entity player, Registry &registry) const override
void activate (entt::entity player, Registry &registry) override
Public Member Functions inherited from Ability
virtual ~Ability ()=default

Detailed Description

Activates a timed "see enemies through walls" reveal.

The effect is a purely visual client-side chams pass; this ability just owns the authoritative timer + cooldown (replicated via AbilityState).

Member Function Documentation

◆ activate()

void WallhackAbility::activate ( entt::entity player,
Registry & registry )
overridevirtual

Implements Ability.

Here is the call graph for this function:

◆ canUse()

bool WallhackAbility::canUse ( entt::entity player,
Registry & registry ) const
overridevirtual

Implements Ability.

Here is the call graph for this function:

◆ cooldown()

float WallhackAbility::cooldown ( ) const
overridevirtual

Implements Ability.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ type()

AbilityType WallhackAbility::type ( ) const
overridevirtual

Implements Ability.

Here is the caller graph for this function:

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