1#include "Game/Map/RaceRail.hpp"
2#include "Game/Util.hpp"
4RaceRail::RaceRail(
const char *pName) :
NameObj(pName) {
8PlayerRacer::PlayerRacer(
const char *pName) :
LiveActor(pName) {
14void PlayerRacer::appear() {
15 RaceManagerFunction::startRaceImmediately();
19 MR::connectToSceneMapObjMovement(
this);
21 mCameraInfo = MR::createActorCameraInfo(rIter);
22 MR::initActorCamera(
this, rIter, &mCameraInfo);
24 bool usesAppear = MR::useStageSwitchReadAppear(
this, rIter);
27 MR::syncStageSwitchAppear(
this);
34 MR::invalidateClipping(
this);
37void PlayerRacer::startRacer() {
38 MR::endActorCamera(
this, mCameraInfo,
true, -1);
43bool PlayerRacer::goalRacer() {
47void PlayerRacer::loseRacer() {
51void PlayerRacer::exitRacer() {
55PlayerRacer::~PlayerRacer() {
59RaceRail::~RaceRail() {
65 mPlayerRacer->
init(rIter);
66 RaceManagerFunction::entryRacerPlayer(mPlayerRacer);
69void PlayerRacer::initRacer() {
70 AbstractRacer::initRacer();
71 MR::startBckPlayer(
"Watch", (
char*)
nullptr);
The basis of a drawable actor that can contain states (see: Nerve)
The most basic form of an object.
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.
virtual void init(const JMapInfoIter &)
Intializes the NameObj and can set various settings and construct necessary classes.