DayZ 1.24
Loading...
Searching...
No Matches
Bouncer Class Reference
Collaboration diagram for Bouncer:
[legend]

Protected Member Functions

void Bouncer ()
 
void Update ()
 
void OnWidgetScriptInit (Widget w)
 

Protected Attributes

float m_orginal_width
 
float m_orginal_height
 
Widget m_root
 
ref AnimatorTimer m_anim
 

Private Attributes

reference float amount
 
reference float speed
 

Detailed Description

Definition at line 2 of file Bouncer.c.

Constructor & Destructor Documentation

◆ Bouncer()

void Bouncer::Bouncer ( )
inlineprotected

Definition at line 13 of file Bouncer.c.

14 {
15 m_anim = new AnimatorTimer();
16 }
ref AnimatorTimer m_anim
Definition Bouncer.c:10

References m_anim.

Member Function Documentation

◆ OnWidgetScriptInit()

void Bouncer::OnWidgetScriptInit ( Widget w)
inlineprotected

Definition at line 31 of file Bouncer.c.

32 {
33 m_root = w;
35 m_anim.AnimateLoop(speed);
36 }
Widget m_root
Definition Bouncer.c:9
float m_orginal_height
Definition Bouncer.c:8
float m_orginal_width
Definition Bouncer.c:7
reference float speed
Definition Bouncer.c:5

References m_anim, m_orginal_height, m_orginal_width, m_root, and speed.

◆ Update()

void Bouncer::Update ( )
inlineprotected

Definition at line 19 of file Bouncer.c.

20 {
21 Print("Update");
22
23 if (m_root)
24 {
25 float p = amount * m_anim.GetValue();
27 }
28 }
reference float amount
Definition Bouncer.c:4
proto void Print(void var)
Prints content of variable to console/log.

References amount, m_anim, m_orginal_height, m_orginal_width, m_root, and Print().

Member Data Documentation

◆ amount

reference float Bouncer::amount
private

Definition at line 4 of file Bouncer.c.

Referenced by Update().

◆ m_anim

ref AnimatorTimer Bouncer::m_anim
protected

Definition at line 10 of file Bouncer.c.

Referenced by Bouncer(), OnWidgetScriptInit(), and Update().

◆ m_orginal_height

float Bouncer::m_orginal_height
protected

Definition at line 8 of file Bouncer.c.

Referenced by OnWidgetScriptInit(), and Update().

◆ m_orginal_width

float Bouncer::m_orginal_width
protected

Definition at line 7 of file Bouncer.c.

Referenced by OnWidgetScriptInit(), and Update().

◆ m_root

Widget Bouncer::m_root
protected

Definition at line 9 of file Bouncer.c.

Referenced by OnWidgetScriptInit(), and Update().

◆ speed

reference float Bouncer::speed
private

Definition at line 5 of file Bouncer.c.

Referenced by OnWidgetScriptInit().


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