Class: RPG::System::Vehicle

Inherits:
Object
  • Object
show all
Extended by:
RgssDb::JsonableConstructor
Includes:
RgssDb::Jsonable
Defined in:
lib/rgss_db/model/rpg_maker_data/vx/rpg/system_vehicle.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/system_vehicle.rb

Overview

The data class for vehicles.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

Constructor Details

#initializeVehicle

Returns a new instance of Vehicle.



12
13
14
15
16
17
18
19
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/system_vehicle.rb', line 12

def initialize
  @character_name = ""
  @character_index = 0
  @bgm = RPG::AudioFile.new
  @start_map_id = 0
  @start_x = 0
  @start_y = 0
end

Instance Attribute Details

#bgmObject

Returns the value of attribute bgm.



21
22
23
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/system_vehicle.rb', line 21

def bgm
  @bgm
end

#character_indexObject

Returns the value of attribute character_index.



21
22
23
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/system_vehicle.rb', line 21

def character_index
  @character_index
end

#character_nameObject

Returns the value of attribute character_name.



21
22
23
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/system_vehicle.rb', line 21

def character_name
  @character_name
end

#start_map_idObject

Returns the value of attribute start_map_id.



21
22
23
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/system_vehicle.rb', line 21

def start_map_id
  @start_map_id
end

#start_xObject

Returns the value of attribute start_x.



21
22
23
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/system_vehicle.rb', line 21

def start_x
  @start_x
end

#start_yObject

Returns the value of attribute start_y.



21
22
23
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/system_vehicle.rb', line 21

def start_y
  @start_y
end