-
Notifications
You must be signed in to change notification settings - Fork 0
/
TCMovementTab.h
56 lines (41 loc) · 1.04 KB
/
TCMovementTab.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// TCMovementTab.h
// touched_cpp
//
// Created by wonhee jang on 13. 3. 20..
// Copyright (c) 2013년 vanillabreeze. All rights reserved.
//
#ifndef touched_cpp_TCMovementTab_h
#define touched_cpp_TCMovementTab_h
#include "CppTweener.h"
using namespace tween;
namespace Touched {
class TCMovementTab : public TweenerListener {
protected:
long milliseconds;
Tweener tweener;
TweenerParam param;
float width;
float x;
float dir_width;
float dir_x;
int max_index;
int index;
public:
TCMovementTab(float _width, int _maxidx, int _idx);
virtual ~TCMovementTab();
virtual void Update(float _tick);
virtual void TCSetWidth(float _width);
virtual float TCGetWidth();
virtual void SetMaxIndex(int _maxidx);
virtual int GetMaxIndex();
virtual void SetIndex(int _idx);
virtual int GetIndex();
virtual float GetX();
virtual void TweenStart();
virtual void onStart(TweenerParam& param);
virtual void onStep(TweenerParam& param);
virtual void onComplete(TweenerParam& param);
};
}
#endif