Class: Yuki::Building_Object
Overview
Object that describe a building on the Map as a Particle
Instance Attribute Summary collapse
-
#disposed ⇒ Boolean
(also: #disposed?)
readonly
If the building is disposed.
-
#sprite ⇒ Sprite
The building sprite.
Instance Method Summary collapse
-
#dispose
Dispose the building.
-
#initialize(image, x, y, oy) ⇒ Building_Object
constructor
Create a new Building_Object.
-
#update
Update the building position (x, y, z).
Constructor Details
#initialize(image, x, y, oy) ⇒ Building_Object
Create a new Building_Object
1016 1017 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1016 def initialize(image, x, y, oy) end |
Instance Attribute Details
#disposed ⇒ Boolean (readonly) Also known as: disposed?
If the building is disposed
1007 1008 1009 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1007 def disposed @disposed end |
#sprite ⇒ Sprite
The building sprite
1010 1011 1012 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1010 def sprite @sprite end |
Instance Method Details
#dispose
Dispose the building
1022 1023 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1022 def dispose end |
#update
Update the building position (x, y, z)
1019 1020 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1019 def update end |