Files
isaac-port/src/game_end.h
T

54 lines
1.4 KiB
C

#pragma once
#include "classes.h"
// How a run ends (Game::End's ending id): a death, or the ending of the last boss beaten. NONE is no ending yet, as
// on a floor the run goes on from, and UNKNOWN a floor without one.
enum GameEnding : int
{
ENDING_NONE,
ENDING_DEATH,
ENDING_MOM,
ENDING_MOMS_HEART,
ENDING_SATAN,
ENDING_ISAAC,
ENDING_LAMB,
ENDING_BLUE_BABY,
ENDING_MEGA_SATAN,
ENDING_ULTRA_GREED,
ENDING_HUSH,
ENDING_DELIRIUM,
ENDING_ULTRA_GREEDIER,
ENDING_MOTHER,
ENDING_BEAST,
ENDING_LAST = ENDING_BEAST,
ENDING_UNKNOWN = 0xff
};
// Whether stage_ending_get lets the Polaroid or the Negative (or a challenge going on) carry the run past the
// Cathedral or Sheol.
enum EndingPhotos
{
ENDING_PHOTOS_CHECKED,
ENDING_PHOTOS_IGNORED
};
// Whether a pickup's update goes on after the ending part, or stops as the run ends.
enum PickupUpdateEnd
{
PICKUP_UPDATE_FINISH,
PICKUP_UPDATE_RETURN
};
void game_end(GameEnding ending);
GameEnding stage_ending_get(EndingPhotos photos);
void game_save_delete();
void persistent_game_data_set_writable();
void run_progress_save();
void rerun_save();
void challenge_finish();
void ending_pickup_init(Entity_Pickup& pickup);
PickupUpdateEnd big_chest_update(Entity_Pickup& chest);
void trophy_update(Entity_Pickup& trophy);
void ending_pickup_touch(Entity_Pickup& pickup, Entity_Player& player);