hx3d
1
2D/3D Simple Game Framework
Main Page
Namespaces
Classes
Files
File List
engine
include
hx3d
tweens
base_tween.hpp
1
/*
2
Base tween.
3
Copyright (C) 2015 Denis BOURGE
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License as published by the Free Software Foundation; either
8
version 2.1 of the License, or (at your option) any later version.
9
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public
16
License along with this library; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
18
USA
19
*/
20
21
#ifndef HX3D_TWEENS_BASETWEEN
22
#define HX3D_TWEENS_BASETWEEN
23
24
namespace
hx3d
{
25
29
namespace
tweens {
30
34
class
BaseTween
{
35
public
:
36
BaseTween
(
bool
infinite);
37
43
bool
hasEnded
();
44
48
virtual
void
reset
() = 0;
49
55
virtual
void
update
(
const
float
delta) = 0;
56
57
protected
:
59
bool
_ended
;
60
62
bool
_infinite
;
63
};
64
65
}
/* math */
66
}
/* hx3d */
67
68
#endif
hx3d::tweens::BaseTween::_infinite
bool _infinite
Is the tween infinite ?
Definition:
base_tween.hpp:62
hx3d
hx3d framework namespace
Definition:
audio.hpp:26
hx3d::tweens::BaseTween::_ended
bool _ended
Has the tween ended ?
Definition:
base_tween.hpp:59
hx3d::tweens::BaseTween::update
virtual void update(const float delta)=0
Update the tween.
hx3d::tweens::BaseTween::reset
virtual void reset()=0
Reset the tween.
hx3d::tweens::BaseTween::hasEnded
bool hasEnded()
Test if the tween has ended.
Definition:
base_tween.cpp:29
hx3d::tweens::BaseTween
Base abstract tween.
Definition:
base_tween.hpp:34
Generated by
1.8.11