Logo
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Properties | List of all members
Yukar.Engine.TweenBase< T > Class Template Referenceabstract

Base class for tweening More...

Public Member Functions

void Begin (T to, int frameCount, int tweenCount=1, TweenStyle tweenStyle=TweenStyle.Liner)
 
void Begin (T fromValue, T toValue, int frameCount, int tweenCount=1, TweenStyle tweenStyle=TweenStyle.Liner)
 
virtual void Update ()
 

Protected Member Functions

 TweenBase ()
 
abstract T GetTweenValue (float percent)
 

Static Protected Member Functions

static void Swap (ref T value1, ref T value2)
 

Protected Attributes

TweenStyle tweenStyle
 
float frameCount
 
int tweenCount
 
int tweenCountLimit
 
float duration
 
from
 
to
 

Properties

bool IsPlayTween [get, protected set]
 
CurrentValue [get, protected set]
 

Detailed Description

Base class for tweening

Template Parameters
T

Constructor & Destructor Documentation

◆ TweenBase()

Yukar.Engine.TweenBase< T >.TweenBase ( )
protected

Member Function Documentation

◆ Begin() [1/2]

void Yukar.Engine.TweenBase< T >.Begin ( fromValue,
toValue,
int  frameCount,
int  tweenCount = 1,
TweenStyle  tweenStyle = TweenStyle.Liner 
)

◆ Begin() [2/2]

void Yukar.Engine.TweenBase< T >.Begin ( to,
int  frameCount,
int  tweenCount = 1,
TweenStyle  tweenStyle = TweenStyle.Liner 
)

◆ GetTweenValue()

abstract T Yukar.Engine.TweenBase< T >.GetTweenValue ( float  percent)
protectedpure virtual

◆ Swap()

static void Yukar.Engine.TweenBase< T >.Swap ( ref T  value1,
ref T  value2 
)
staticprotected

◆ Update()

virtual void Yukar.Engine.TweenBase< T >.Update ( )
virtual

Member Data Documentation

◆ duration

float Yukar.Engine.TweenBase< T >.duration
protected

◆ frameCount

float Yukar.Engine.TweenBase< T >.frameCount
protected

◆ from

T Yukar.Engine.TweenBase< T >.from
protected

◆ to

T Yukar.Engine.TweenBase< T >.to
protected

◆ tweenCount

int Yukar.Engine.TweenBase< T >.tweenCount
protected

◆ tweenCountLimit

int Yukar.Engine.TweenBase< T >.tweenCountLimit
protected

◆ tweenStyle

TweenStyle Yukar.Engine.TweenBase< T >.tweenStyle
protected

Property Documentation

◆ CurrentValue

T Yukar.Engine.TweenBase< T >.CurrentValue
getprotected set

◆ IsPlayTween

bool Yukar.Engine.TweenBase< T >.IsPlayTween
getprotected set