From f84294fe07d3442ca62302de491717ef6355e902 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 23 Apr 2022 14:35:34 +0200 Subject: fixed fullscreen, removed effective vars from windows --- src/helpers/AnimatedVariable.hpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/helpers') 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; -- cgit v1.2.3