Class: Yuki::Tilemap

Inherits:
Object show all
Defined in:
docs/01450_Systems_00003_Map_Engine.rb

Overview

Class responsive of displaying the map

Direct Known Subclasses

Tilemap16px

Defined Under Namespace

Classes: MapData

Constant Summary collapse

PRIORITY_LAYER_COUNT =

Array telling how much layer each priority layer can show

[3, 2, 2, 1, 1, 1]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(viewport) ⇒ Tilemap

Create a new Tilemap

Parameters:



1017
1018
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 1017

def initialize(viewport)
end

Instance Attribute Details

#map_datasArray<Yuki::Tilemap::MapData>

Get all the map data used by the tilemap

Returns:



1008
1009
1010
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 1008

def map_datas
  @map_datas
end

#oxInteger

Get the ox

Returns:

  • (Integer)


1011
1012
1013
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 1011

def ox
  @ox
end

#oyInteger

Get the oy

Returns:

  • (Integer)


1014
1015
1016
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 1014

def oy
  @oy
end

Instance Method Details

#dispose

Dispose the tilemap



1034
1035
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 1034

def dispose
end

#disposed?Boolean

Is the tilemap disposed

Returns:

  • (Boolean)


1027
1028
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 1027

def disposed?
end

#reset

Reset the tilemap in order to force it to draw the frame



1020
1021
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 1020

def reset
end

#update

Update the tilemap



1023
1024
# File 'docs/01450_Systems_00003_Map_Engine.rb', line 1023

def update
end