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



1016
1017
# File 'docs/4_Systems_003_Map_Engine.rb', line 1016

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

Instance Attribute Details

#disposedBoolean (readonly) Also known as: disposed?

If the building is disposed

Returns:

  • (Boolean)


1007
1008
1009
# File 'docs/4_Systems_003_Map_Engine.rb', line 1007

def disposed
  @disposed
end

#spriteSprite

The building sprite

Returns:



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