diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-23 14:35:34 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-04-23 14:35:34 +0200 |
| commit | f84294fe07d3442ca62302de491717ef6355e902 (patch) | |
| tree | 9320b302b14c58abfd0c9602367d9b75f24d8894 /src/helpers | |
| parent | 0147975faf939db389bebaa95e3a12e5e5a8753f (diff) | |
fixed fullscreen, removed effective vars from windows
Diffstat (limited to 'src/helpers')
| -rw-r--r-- | src/helpers/AnimatedVariable.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/helpers/AnimatedVariable.hpp b/src/helpers/AnimatedVariable.hpp index bd10c920..d6e058f0 100644 --- a/src/helpers/AnimatedVariable.hpp +++ b/src/helpers/AnimatedVariable.hpp @@ -21,21 +21,42 @@ public: ~CAnimatedVariable(); + // gets the current vector value (real time) Vector2D vec() { ASSERT(m_eVarType == AVARTYPE_VECTOR); return m_vValue; } + // gets the current float value (real time) float fl() { ASSERT(m_eVarType == AVARTYPE_FLOAT); return m_fValue; } + // gets the current color value (real time) CColor col() { ASSERT(m_eVarType == AVARTYPE_COLOR); return m_cValue; } + // gets the goal vector value + Vector2D goalv() { + ASSERT(m_eVarType == AVARTYPE_VECTOR); + return m_vGoal; + } + + // gets the goal float value + float goalf() { + ASSERT(m_eVarType == AVARTYPE_FLOAT); + return m_fGoal; + } + + // gets the goal color value + CColor goalc() { + ASSERT(m_eVarType == AVARTYPE_COLOR); + return m_cGoal; + } + void operator=(const Vector2D& v) { ASSERT(m_eVarType == AVARTYPE_VECTOR); m_vGoal = v; |
