|
Zappy GUI
C++ graphic client: renderer, camera, network
|
Visual-only state for an entity, driven by behaviors each frame. Logical state (x, y, orientation) remains authoritative from the server. More...
#include <VisualState.hpp>
Collaboration diagram for VisualState:Public Member Functions | |
| void | update (float dt) const |
Public Attributes | |
| Vector3 | pos = {0.0f, 0.0f, 0.0f} |
| float | angle = 0.0f |
| float | scale = 1.0f |
| std::vector< std::unique_ptr< IBehavior > > | behaviors |
Visual-only state for an entity, driven by behaviors each frame. Logical state (x, y, orientation) remains authoritative from the server.
Definition at line 13 of file VisualState.hpp.
|
inline |
Definition at line 20 of file VisualState.hpp.
References behaviors.
|
mutable |
Definition at line 16 of file VisualState.hpp.
Referenced by GameState::_applyPlayerPosition(), CameraController::_followTarget(), IncantationBehavior::IncantationBehavior(), IncantationBehavior::update(), and TurnBehavior::update().
|
mutable |
Definition at line 18 of file VisualState.hpp.
Referenced by GameState::_applyPlayerDeath(), GameState::_applyPlayerPosition(), RaylibRenderer::_drawBehaviorParticles(), GameState::_pushBehavior(), and update().
|
mutable |
Definition at line 15 of file VisualState.hpp.
Referenced by RaylibRenderer::_drawSelectionHighlight(), CameraController::_followTarget(), DeathBehavior::_spawnParticles(), ForkBehavior::_spawnParticles(), LevelUpBehavior::_spawnParticles(), IncantationBehavior::IncantationBehavior(), MoveBehavior::MoveBehavior(), BroadcastBehavior::update(), IncantationBehavior::update(), LevelUpBehavior::update(), and MoveBehavior::update().
|
mutable |
Definition at line 17 of file VisualState.hpp.
Referenced by RaylibRenderer::_drawSelectionHighlight(), ForkBehavior::ForkBehavior(), ForkBehavior::isDone(), DeathBehavior::update(), and ForkBehavior::update().