Class: Yuki::Building_Object

Inherits:
Object
  • Object
show all
Defined in:
docs/4_Systems_003_Map_Engine.rb

Overview

Object that describe a building on the Map as a Particle

Author:

  • Nuri Yuri

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image, x, y, oy) ⇒ Building_Object

Create a new Building_Object

Parameters:

  • image (String) —

    name of the image in Graphics/Autotiles/

  • x (Integer) —

    x coordinate of the building

  • y (Integer) —

    y coordinate of the building

  • oy (Integer) —

    offset y coordinate of the building in native resolution pixel



1184
1185
# File 'docs/4_Systems_003_Map_Engine.rb', line 1184

def initialize(image, x, y, oy)
end

Instance Attribute Details

#disposed ⇒ Boolean (readonly) Also known as: disposed?

If the building is disposed

Returns:

  • (Boolean)


1175
1176
1177
# File 'docs/4_Systems_003_Map_Engine.rb', line 1175

def disposed
  @disposed
end

#sprite ⇒ Sprite

The building sprite

Returns:



1178
1179
1180
# File 'docs/4_Systems_003_Map_Engine.rb', line 1178

def sprite
  @sprite
end

Instance Method Details

#dispose

Dispose the building



1190
1191
# File 'docs/4_Systems_003_Map_Engine.rb', line 1190

def dispose
end

#update

Update the building position (x, y, z)



1187
1188
# File 'docs/4_Systems_003_Map_Engine.rb', line 1187

def update
end