diff options
author | Colin Noga <Tempus@chronometry.ca> | 2012-03-09 01:40:14 -0600 |
---|---|---|
committer | Colin Noga <Tempus@chronometry.ca> | 2012-03-09 01:40:14 -0600 |
commit | 59624313e01ef4269f2ca27babe522d407e200b0 (patch) | |
tree | 3ef69879f19f4eded72a310a94736e151a108cc7 /src/boss.h | |
parent | 05d99e2cf552024116356591be0a88bf862b89c9 (diff) | |
download | kamek-59624313e01ef4269f2ca27babe522d407e200b0.tar.gz kamek-59624313e01ef4269f2ca27babe522d407e200b0.zip |
Redid all the boss and custom sprite junk, effect list, saved 25 kb - but bosses break
Diffstat (limited to 'src/boss.h')
-rw-r--r-- | src/boss.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/boss.h b/src/boss.h new file mode 100644 index 0000000..784c5fa --- /dev/null +++ b/src/boss.h @@ -0,0 +1,48 @@ +#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; +}; + + +// 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 + |