MCPcopy Create free account
hub / github.com/EasyRPG/Player / SyncWithRider

Method SyncWithRider

src/game_vehicle.cpp:124–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124void Game_Vehicle::SyncWithRider(const Game_Character* rider) {
125 SetProcessed(true);
126 SetMapId(rider->GetMapId());
127 SetX(rider->GetX());
128 SetY(rider->GetY());
129 SetDirection(rider->GetDirection());
130 SetFacing(rider->GetFacing());
131 SetRemainingStep(rider->GetRemainingStep());
132
133 // RPG_RT doesn't copy jumping chunks
134
135 UpdateAnimation();
136 CancelMoveRoute();
137}
138
139int Game_Vehicle::GetAltitude() const {
140 if (!IsFlying())

Callers 1

UpdateMethod · 0.80

Calls 6

GetFacingMethod · 0.80
GetRemainingStepMethod · 0.80
GetMapIdMethod · 0.45
GetXMethod · 0.45
GetYMethod · 0.45
GetDirectionMethod · 0.45

Tested by

no test coverage detected