mirror of
https://github.com/echojc/osu-ds.git
synced 2025-06-19 01:15:44 -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>
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
#include <nds.h>
|
|
#include <vector>
|
|
#include "HitObject.h"
|
|
|
|
#ifndef __HITSLIDER_H__
|
|
#define __HITSLIDER_H__
|
|
|
|
using namespace std;
|
|
|
|
typedef vector<HitObjectPoint*>::iterator pointIterator;
|
|
|
|
typedef struct {
|
|
pSprite* Tick;
|
|
pSprite* Score;
|
|
} TickSprites;
|
|
|
|
class HitSlider : public HitObject
|
|
{
|
|
public:
|
|
HitSlider(s32 x, s32 y, s32 time, u32 lengthtime, vector<HitObjectPoint*>& points, vector<HitObjectPoint*>& ticks, u32 repeats, HitObjectType type, HitObjectSound sound);
|
|
~HitSlider();
|
|
|
|
bool InBounds(s32 x, s32 y);
|
|
|
|
void Update();
|
|
|
|
void OnTouchDown(const touchPosition& touch);
|
|
void OnTouch(const touchPosition& touch);
|
|
void OnTouchUp(const touchPosition& touch);
|
|
|
|
void Hit();
|
|
|
|
protected:
|
|
static void MapSliderPath(pSprite* spr, vector<HitObjectPoint*>& points, s32 time, u32 lengthtime, u32 repeats);
|
|
|
|
bool fTouching, fStarted, fFinished;
|
|
TickSprites* mTicks;
|
|
s32* mTickTimes;
|
|
u32 mTickTime, mLengthTime;
|
|
|
|
u32 mTickCount, mTicksHit, mTicksTarget;
|
|
u32 mRepeats, mRepeatCurrent;
|
|
s32 mTimeLast;
|
|
|
|
u32 mSecondaryScoreSpriteId;
|
|
|
|
int mChannel;
|
|
};
|
|
|
|
#endif
|
|
|