Greek support, modular weather, command history for console window

Former-commit-id: b72d0b018c084e80cf4fef77e1b1a81101d6daea
Former-commit-id: 32da6a2998826de6519a901dcff7bf058f689b2f
This commit is contained in:
Song Minjae
2016-07-13 21:48:14 +09:00
parent c52015e429
commit 1d1f99605c
74 changed files with 1067 additions and 387 deletions

View File

@@ -4,7 +4,7 @@ package net.torvald.terrarum.gamemap
import org.dyn4j.geometry.Vector2
import org.newdawn.slick.SlickException
class GameMap
class GameWorld
/**
* @param width
* *
@@ -36,7 +36,7 @@ constructor(//properties
var gravitation: Vector2 = Vector2(0.0, 9.8)
/** RGB in Integer */
var globalLight: Int = 0
val worldTime: WorldTime
val time: WorldTime
var generatorSeed: Long = 0
@@ -50,8 +50,7 @@ constructor(//properties
terrainDamage = PairedMapLayer(width, height)
wallDamage = PairedMapLayer(width, height)
globalLight = 0.toChar().toInt()
worldTime = WorldTime()
time = WorldTime()
}
/**
@@ -169,7 +168,7 @@ constructor(//properties
}
fun updateWorldTime(delta: Int) {
worldTime.update(delta)
time.update(delta)
}
fun terrainIterator(): Iterator<Int> {