Example #1
0
Game_Vehicle::Game_Vehicle(Type _type) {
	type = _type;
	altitude = 0;
	driving = false;
	direction = RPG::EventPage::Direction_left;
	walk_anime = false;
	step_anime = false;
	LoadSystemSettings();
}
Example #2
0
Game_Vehicle::Game_Vehicle(Type _type) :
	Game_Character(getDataFromType(_type))
{
	type = _type;
	SetDirection(Left);
	SetSpriteDirection(Left);
	SetAnimationType(AnimType::AnimType_non_continuous);
	SetLayer(RPG::EventPage::Layers_same);
	LoadSystemSettings();
}
Example #3
0
Game_Vehicle::Game_Vehicle(Type _type) :
	data(_type == Boat ? Main_Data::game_data.boat_location :
		 _type == Ship ? Main_Data::game_data.ship_location :
		 Main_Data::game_data.airship_location) {
	assert(_type >= 1 && _type <= 3 && "Invalid Vehicle index");
	type = _type;
	driving = false;
	SetDirection(RPG::EventPage::Direction_left);
	walk_animation = type != Airship;
	animation_type = RPG::EventPage::AnimType_continuous;
	LoadSystemSettings();
}