summaryrefslogtreecommitdiff
path: root/src/boss.h
blob: 4c31021dbd2a3061c237ecaf57e89e04c72049df (plain)
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
#ifndef __PLAYER_H
#define __PLAYER_H

#include <common.h>
#include <game.h>
#include <g3dhax.h>
#include <stage.h>
#include <sfx.h>

extern "C" void *PlaySound(dStageActor_c *, int soundID);
extern "C" void *PlaySoundAsync(dStageActor_c *, int soundID);

extern "C" bool SpawnEffect(const char*, int, Vec*, S16Vec*, Vec*);

extern "C" dStageActor_c* GetSpecificPlayerActor(int number);
extern "C" dStageActor_c *CreateActor(u16 classID, int settings, Vec pos, char rot, char layer);

extern "C" u32 GenerateRandomNumber(int max);
extern "C" u8 dSprite_c__getXDirectionOfFurthestPlayerRelativeToVEC3(dEn_c *, Vec pos);
extern "C" char usedForDeterminingStatePress_or_playerCollision(dEn_c* t, ActivePhysics *apThis, ActivePhysics *apOther, int unk1);

extern "C" void *StopBGMMusic();
extern "C" void *StartBGMMusic();

extern "C" void *MakeMarioEnterDemoMode();
extern "C" void *MakeMarioExitDemoMode();
extern "C" void *UpdateGameMgr();


class daBoss : public dEn_c {
public:
	u32 timer;
	char dying;
	u32 damage;

	daKameckDemo *Kameck;
};


// Functions
void DamagePlayer(dEn_c* actor, ActivePhysics *apThis, ActivePhysics *apOther);
void SetupKameck(daBoss* actor, daKameckDemo *Kameck);
void CleanupKameck(daBoss* actor, daKameckDemo *Kameck);
bool GrowBoss(daBoss* actor, daKameckDemo *Kameck, float initialScale, float endScale, float yPosModifier, int timer);
void OutroSetup(daBoss* actor);
bool ShrinkBoss(daBoss *actor, Vec *pos, float scale, int timer);
void BossExplode(daBoss* actor, Vec *pos);
void PlayerVictoryCries(daBoss* actor);

#endif