Class: RPG::System::Vehicle

Inherits:
Object
  • Object
show all
Defined in:
lib/rpg/system/vehicle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeVehicle

Returns a new instance of Vehicle.



4
5
6
7
8
9
10
11
# File 'lib/rpg/system/vehicle.rb', line 4

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

Instance Attribute Details

#bgmObject

Returns the value of attribute bgm.



14
15
16
# File 'lib/rpg/system/vehicle.rb', line 14

def bgm
  @bgm
end

#character_indexObject

Returns the value of attribute character_index.



13
14
15
# File 'lib/rpg/system/vehicle.rb', line 13

def character_index
  @character_index
end

#character_nameObject

Returns the value of attribute character_name.



12
13
14
# File 'lib/rpg/system/vehicle.rb', line 12

def character_name
  @character_name
end

#start_map_idObject

Returns the value of attribute start_map_id.



15
16
17
# File 'lib/rpg/system/vehicle.rb', line 15

def start_map_id
  @start_map_id
end

#start_xObject

Returns the value of attribute start_x.



16
17
18
# File 'lib/rpg/system/vehicle.rb', line 16

def start_x
  @start_x
end

#start_yObject

Returns the value of attribute start_y.



17
18
19
# File 'lib/rpg/system/vehicle.rb', line 17

def start_y
  @start_y
end