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