mirror of
https://github.com/echojc/osu-ds.git
synced 2025-06-18 17:05:36 -04:00

Removed the arm7 section Changed the makefile to only use the arm9 stuff Epicpkmn: Fix source/Graphics/GraphicsManager.cpp Co-Authored-By: Pk11 <epicpkmn11@outlook.com> Co-Authored-By: Kaisaan <34224128+Kaisaan@users.noreply.github.com>
43 lines
740 B
C++
43 lines
740 B
C++
#include <nds.h>
|
|
#include <stdio.h>
|
|
#include "System/GameClock.h"
|
|
|
|
#ifndef __TRANSFORMATION_H__
|
|
#define __TRANSFORMATION_H__
|
|
|
|
typedef enum {
|
|
TR_FADE,
|
|
TR_MOVEX,
|
|
TR_MOVEY,
|
|
TR_SCALEX,
|
|
TR_SCALEY,
|
|
TR_ROTATE,
|
|
TR_KILL
|
|
} TransformType;
|
|
|
|
class Transformation
|
|
{
|
|
public:
|
|
Transformation(TransformType type, s32 starttime, s32 endtime, s32 startvalue, s32 endvalue);
|
|
void Update();
|
|
s32 Value() const { return currentvalue; }
|
|
bool Active();
|
|
TransformType Type() const { return type; }
|
|
|
|
bool Finished() { return GameClock::Clock().Time() > endtime; }
|
|
|
|
protected:
|
|
TransformType type;
|
|
|
|
bool active, lastactive;
|
|
|
|
s32 starttime, endtime, totaltime;
|
|
|
|
s32 startvalue, endvalue, currentvalue;
|
|
s32 totalvalue;
|
|
};
|
|
|
|
|
|
#endif
|
|
|