Zappy GUI
C++ graphic client: renderer, camera, network
Loading...
Searching...
No Matches
VisualState Class Reference

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
 

Detailed Description

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.

Member Function Documentation

◆ update()

void VisualState::update ( float  dt) const
inline

Definition at line 20 of file VisualState.hpp.

References behaviors.

Member Data Documentation

◆ angle

◆ behaviors

std::vector<std::unique_ptr<IBehavior> > VisualState::behaviors
mutable

◆ pos

◆ scale


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