Class: Yuki::Tilemap

Inherits:
Object show all
Defined in:
docs/4_Systems_003_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:



1509
1510
# File 'docs/4_Systems_003_Map_Engine.rb', line 1509

def initialize(viewport)
end

Instance Attribute Details

#map_datas ⇒ Array<Yuki::Tilemap::MapData>

Get all the map data used by the tilemap

Returns:



1500
1501
1502
# File 'docs/4_Systems_003_Map_Engine.rb', line 1500

def map_datas
  @map_datas
end

#ox ⇒ Integer

Get the ox

Returns:

  • (Integer)


1503
1504
1505
# File 'docs/4_Systems_003_Map_Engine.rb', line 1503

def ox
  @ox
end

#oy ⇒ Integer

Get the oy

Returns:

  • (Integer)


1506
1507
1508
# File 'docs/4_Systems_003_Map_Engine.rb', line 1506

def oy
  @oy
end

Instance Method Details

#dispose

Dispose the tilemap



1526
1527
# File 'docs/4_Systems_003_Map_Engine.rb', line 1526

def dispose
end

#disposed? ⇒ Boolean

Is the tilemap disposed

Returns:

  • (Boolean)


1519
1520
# File 'docs/4_Systems_003_Map_Engine.rb', line 1519

def disposed?
end

#reset

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



1512
1513
# File 'docs/4_Systems_003_Map_Engine.rb', line 1512

def reset
end

#update

Update the tilemap



1515
1516
# File 'docs/4_Systems_003_Map_Engine.rb', line 1515

def update
end