Class: RPG::System::Vehicle
- Inherits:
-
Object
- Object
- RPG::System::Vehicle
- Defined in:
- lib/rpg/system/vehicle.rb
Instance Attribute Summary collapse
-
#bgm ⇒ Object
Returns the value of attribute bgm.
-
#character_index ⇒ Object
Returns the value of attribute character_index.
-
#character_name ⇒ Object
Returns the value of attribute character_name.
-
#start_map_id ⇒ Object
Returns the value of attribute start_map_id.
-
#start_x ⇒ Object
Returns the value of attribute start_x.
-
#start_y ⇒ Object
Returns the value of attribute start_y.
Instance Method Summary collapse
-
#initialize ⇒ Vehicle
constructor
A new instance of Vehicle.
Constructor Details
#initialize ⇒ Vehicle
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
#bgm ⇒ Object
Returns the value of attribute bgm.
14 15 16 |
# File 'lib/rpg/system/vehicle.rb', line 14 def bgm @bgm end |
#character_index ⇒ Object
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_name ⇒ Object
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_id ⇒ Object
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_x ⇒ Object
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_y ⇒ Object
Returns the value of attribute start_y.
17 18 19 |
# File 'lib/rpg/system/vehicle.rb', line 17 def start_y @start_y end |