Rectified heretic YY-MM-DD to standard YYYY-MM-DD

This commit is contained in:
minjaesong
2017-09-20 14:36:40 +09:00
parent e31640cba6
commit 3569e3ccbf
188 changed files with 192 additions and 188 deletions

View File

@@ -17,7 +17,7 @@ import java.io.OutputStream
* If memory at Program Counter is equal to 0xFF, it is interpreted as termination. (0xFF is NOT a * If memory at Program Counter is equal to 0xFF, it is interpreted as termination. (0xFF is NOT a
* valid opcode for input program, however) * valid opcode for input program, however)
* *
* Created by minjaesong on 17-04-29. * Created by minjaesong on 2017-04-29.
*/ */
class BFVM( class BFVM(

View File

@@ -5,7 +5,7 @@ import net.torvald.terrarum.gameworld.toUint
/** /**
* @param terminal: for sending redraw only * @param terminal: for sending redraw only
* *
* Created by minjaesong on 16-08-10. * Created by minjaesong on 2016-08-10.
*/ */
/*class AAFrame(var width: Int, var height: Int, var terminal: SimpleTextTerminal) { /*class AAFrame(var width: Int, var height: Int, var terminal: SimpleTextTerminal) {

View File

@@ -13,7 +13,7 @@ import com.badlogic.gdx.graphics.Color
* *
* reference: http://www.brucelindbloom.com/index.html?Equations.html * reference: http://www.brucelindbloom.com/index.html?Equations.html
* *
* Created by minjaesong on 16-09-01. * Created by minjaesong on 2016-09-01.
*/ */
object CIELChabUtil { object CIELChabUtil {

View File

@@ -21,7 +21,7 @@ import com.badlogic.gdx.graphics.Color
* If you're using Mac, you can play around with this colour space with * If you're using Mac, you can play around with this colour space with
* ColorSync Utility's calculator. * ColorSync Utility's calculator.
* *
* Created by minjaesong on 16-09-01. * Created by minjaesong on 2016-09-01.
*/ */
object CIELabUtil { object CIELabUtil {
fun Color.brighterLab(scale: Float): Color { fun Color.brighterLab(scale: Float): Color {

View File

@@ -17,7 +17,7 @@ import net.torvald.colourutil.CIELuvUtil.toXYZ
* If you're using Mac, you can play around with this colour space with * If you're using Mac, you can play around with this colour space with
* ColorSync Utility's calculator. * ColorSync Utility's calculator.
* *
* Created by minjaesong on 16-09-06. * Created by minjaesong on 2016-09-06.
*/ */
object CIELuvUtil { object CIELuvUtil {

View File

@@ -4,7 +4,7 @@ import com.badlogic.gdx.graphics.Color
/** /**
* 6-Step RGB with builtin utils. * 6-Step RGB with builtin utils.
* Created by minjaesong on 16-02-11. * Created by minjaesong on 2016-02-11.
*/ */
class Col216 : LimitedColours { class Col216 : LimitedColours {

View File

@@ -4,7 +4,7 @@ import com.badlogic.gdx.graphics.Color
/** /**
* 12-bit (16-step) RGB with builtin utils. * 12-bit (16-step) RGB with builtin utils.
* Created by minjaesong on 16-01-23. * Created by minjaesong on 2016-01-23.
*/ */
class Col4096 : LimitedColours { class Col4096 : LimitedColours {

View File

@@ -7,7 +7,7 @@ import net.torvald.terrarum.ModMgr
/** /**
* RGB- and CIE-Modeled CCT calculator * RGB- and CIE-Modeled CCT calculator
* Created by minjaesong on 16-07-26. * Created by minjaesong on 2016-07-26.
*/ */
object ColourTemp { object ColourTemp {
private var clut = GdxColorMap(ModMgr.getGdxFile("basegame", "colourmap/black_body_col_1000_40000_K.tga")) private var clut = GdxColorMap(ModMgr.getGdxFile("basegame", "colourmap/black_body_col_1000_40000_K.tga"))

View File

@@ -4,7 +4,7 @@ import com.jme3.math.FastMath
import com.badlogic.gdx.graphics.Color import com.badlogic.gdx.graphics.Color
/** /**
* Created by minjaesong on 16-07-26. * Created by minjaesong on 2016-07-26.
*/ */
object ColourUtil { object ColourUtil {
fun toColor(r: Int, g: Int, b: Int) = Color(r.shl(24) or g.shl(16) or b.shl(8) or 0xff) fun toColor(r: Int, g: Int, b: Int) = Color(r.shl(24) or g.shl(16) or b.shl(8) or 0xff)

View File

@@ -6,7 +6,7 @@ import com.badlogic.gdx.graphics.Color
/** /**
* OBSOLETE; use CIELchUtil for natural-looking colour * OBSOLETE; use CIELchUtil for natural-looking colour
* *
* Created by minjaesong on 16-01-16. * Created by minjaesong on 2016-01-16.
*/ */
object HSVUtil { object HSVUtil {

View File

@@ -3,7 +3,7 @@ package net.torvald.colourutil
import com.badlogic.gdx.graphics.Color import com.badlogic.gdx.graphics.Color
/** /**
* Created by minjaesong on 16-02-11. * Created by minjaesong on 2016-02-11.
*/ */
interface LimitedColours { interface LimitedColours {

View File

@@ -5,7 +5,7 @@ import java.util.*
/** /**
* Simple ArrayList wrapper that acts as history keeper. You can append any data but cannot delete. * Simple ArrayList wrapper that acts as history keeper. You can append any data but cannot delete.
* *
* Created by minjaesong on 16-07-13. * Created by minjaesong on 2016-07-13.
*/ */
class HistoryArray<T>(val size: Int) { class HistoryArray<T>(val size: Int) {

View File

@@ -5,7 +5,7 @@ import net.torvald.terrarum.gameactors.sqrt
import org.dyn4j.geometry.Vector2 import org.dyn4j.geometry.Vector2
/** /**
* Created by minjaesong on 16-01-15. * Created by minjaesong on 2016-01-15.
*/ */
data class Point2d(var x: Double, var y: Double) : Cloneable { data class Point2d(var x: Double, var y: Double) : Cloneable {

View File

@@ -3,7 +3,7 @@ package net.torvald.random
import java.util.Random import java.util.Random
/** /**
* Created by minjaesong on 16-02-03. * Created by minjaesong on 2016-02-03.
*/ */
class Fudge3 class Fudge3
/** /**

View File

@@ -3,7 +3,7 @@ package net.torvald.random
import java.util.Random import java.util.Random
/** /**
* Created by minjaesong on 16-02-03. * Created by minjaesong on 2016-02-03.
*/ */
open class FudgeDice open class FudgeDice
/** /**

View File

@@ -1,7 +1,7 @@
package net.torvald.random package net.torvald.random
/** /**
* Created by minjaesong on 16-10-28. * Created by minjaesong on 2016-10-28.
*/ */
interface NoiseGenerator1D { interface NoiseGenerator1D {
fun generate(seed: Long) fun generate(seed: Long)

View File

@@ -11,7 +11,7 @@ import java.util.*
* Generate value noise that is always "tileably looped" every x in loopSize. * Generate value noise that is always "tileably looped" every x in loopSize.
* *
* @param width: power of 2's are recommended. * @param width: power of 2's are recommended.
* Created by minjaesong on 16-10-28. * Created by minjaesong on 2016-10-28.
*/ */
class TileableValueNoise( class TileableValueNoise(
val octaves: Int, val persistency: Float, val width: Int, val initSamples: Int = 4) { val octaves: Int, val persistency: Float, val width: Int, val initSamples: Int = 4) {

View File

@@ -7,7 +7,7 @@ import com.google.gson.JsonObject
/** /**
* Keys must be all lowercase * Keys must be all lowercase
* *
* Created by minjaesong on 16-03-12. * Created by minjaesong on 2016-03-12.
*/ */
object DefaultConfig { object DefaultConfig {
fun fetch(): JsonObject { fun fetch(): JsonObject {

View File

@@ -10,7 +10,7 @@ typealias ItemValue = KVHashMap
typealias GameConfig = KVHashMap typealias GameConfig = KVHashMap
/** /**
* Created by minjaesong on 15-12-30. * Created by minjaesong on 2015-12-30.
*/ */
open class KVHashMap { open class KVHashMap {

View File

@@ -40,7 +40,7 @@ import java.nio.IntBuffer
import java.util.* import java.util.*
/** /**
* Slick2d Version Created by minjaesong on 15-12-30. * Slick2d Version Created by minjaesong on 2015-12-30.
* *
* LibGDX Version Created by minjaesong on 2017-06-15. * LibGDX Version Created by minjaesong on 2017-06-15.
*/ */
@@ -486,6 +486,10 @@ object Terrarum : Screen {
shaderBayerSkyboxFill.dispose() shaderBayerSkyboxFill.dispose()
shaderBlur.dispose() shaderBlur.dispose()
shaderBlendGlow.dispose() shaderBlendGlow.dispose()
shapeRender.dispose()
batch.dispose()
} }
override fun hide() { override fun hide() {

View File

@@ -7,7 +7,7 @@ import net.torvald.terrarum.ModMgr
import java.util.* import java.util.*
/** /**
* Created by minjaesong on 16-07-08. * Created by minjaesong on 2016-07-08.
*/ */
object AudioResourceLibrary { object AudioResourceLibrary {

View File

@@ -1,7 +1,7 @@
package net.torvald.terrarum.blockproperties package net.torvald.terrarum.blockproperties
/** /**
* Created by minjaesong on 16-02-21. * Created by minjaesong on 2016-02-21.
*/ */
object Block { object Block {

View File

@@ -9,7 +9,7 @@ import org.apache.commons.csv.CSVRecord
import java.io.IOException import java.io.IOException
/** /**
* Created by minjaesong on 16-02-16. * Created by minjaesong on 2016-02-16.
*/ */
object BlockCodex { object BlockCodex {

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.blockproperties
import com.badlogic.gdx.graphics.Color import com.badlogic.gdx.graphics.Color
/** /**
* Created by minjaesong on 16-02-16. * Created by minjaesong on 2016-02-16.
*/ */
class BlockProp { class BlockProp {

View File

@@ -11,7 +11,7 @@ import net.torvald.terrarum.worlddrawer.LightmapRenderer
import net.torvald.terrarum.weather.WeatherMixer import net.torvald.terrarum.weather.WeatherMixer
/** /**
* Created by minjaesong on 16-06-16. * Created by minjaesong on 2016-06-16.
*/ */
object BlockPropUtil { object BlockPropUtil {
var flickerFuncX: Second = 0f // saves current status (time) of func var flickerFuncX: Second = 0f // saves current status (time) of func

View File

@@ -10,7 +10,7 @@ import com.jme3.math.FastMath
import java.util.Arrays import java.util.Arrays
/** /**
* Created by minjaesong on 16-02-01. * Created by minjaesong on 2016-02-01.
*/ */
object BlockStats { object BlockStats {

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.concurrent
import net.torvald.terrarum.Terrarum import net.torvald.terrarum.Terrarum
/** /**
* Created by minjaesong on 16-05-25. * Created by minjaesong on 2016-05-25.
*/ */
object ThreadParallel { object ThreadParallel {
private val pool: Array<Thread?> = Array(Terrarum.THREADS, { null }) private val pool: Array<Thread?> = Array(Terrarum.THREADS, { null })

View File

@@ -22,7 +22,7 @@ import org.apache.commons.codec.digest.DigestUtils
* do NOT put plaintext anywhere in the code (except for comments maybe) * do NOT put plaintext anywhere in the code (except for comments maybe)
* must use SHA-256 * must use SHA-256
* *
* Created by minjaesong on 16-02-19. * Created by minjaesong on 2016-02-19.
*/ */
internal object Authenticator : ConsoleCommand { internal object Authenticator : ConsoleCommand {

View File

@@ -4,7 +4,7 @@ import java.nio.file.FileSystems
import java.nio.file.Files import java.nio.file.Files
/** /**
* Created by minjaesong on 16-03-07. * Created by minjaesong on 2016-03-07.
*/ */
internal object Batch : ConsoleCommand { internal object Batch : ConsoleCommand {
@Throws(Exception::class) @Throws(Exception::class)

View File

@@ -5,7 +5,7 @@ import java.nio.file.FileSystems
import java.nio.file.Files import java.nio.file.Files
/** /**
* Created by minjaesong on 16-02-10. * Created by minjaesong on 2016-02-10.
*/ */
internal object CatStdout : ConsoleCommand { internal object CatStdout : ConsoleCommand {
override fun execute(args: Array<String>) { override fun execute(args: Array<String>) {

View File

@@ -7,7 +7,7 @@ import net.torvald.terrarum.langpack.Lang
import java.util.Formatter import java.util.Formatter
/** /**
* Created by minjaesong on 16-01-16. * Created by minjaesong on 2016-01-16.
*/ */
internal object CodexEdictis : ConsoleCommand { internal object CodexEdictis : ConsoleCommand {

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.console
import java.util.HashMap import java.util.HashMap
/** /**
* Created by minjaesong on 16-01-15. * Created by minjaesong on 2016-01-15.
*/ */
object CommandDict { object CommandDict {

View File

@@ -8,7 +8,7 @@ import java.util.Formatter
import java.util.regex.Pattern import java.util.regex.Pattern
/** /**
* Created by minjaesong on 16-01-15. * Created by minjaesong on 2016-01-15.
*/ */
internal object CommandInterpreter { internal object CommandInterpreter {

View File

@@ -1,7 +1,7 @@
package net.torvald.terrarum.console package net.torvald.terrarum.console
/** /**
* Created by minjaesong on 16-01-15. * Created by minjaesong on 2016-01-15.
*/ */
interface ConsoleCommand { interface ConsoleCommand {

View File

@@ -4,7 +4,7 @@ import net.torvald.terrarum.Terrarum
import net.torvald.terrarum.ui.ConsoleWindow import net.torvald.terrarum.ui.ConsoleWindow
/** /**
* Created by minjaesong on 16-01-16. * Created by minjaesong on 2016-01-16.
*/ */
internal object Echo : ConsoleCommand { internal object Echo : ConsoleCommand {
override fun execute(args: Array<String>) { override fun execute(args: Array<String>) {

View File

@@ -1,7 +1,7 @@
package net.torvald.terrarum.console package net.torvald.terrarum.console
/** /**
* Created by minjaesong on 16-09-07. * Created by minjaesong on 2016-09-07.
*/ */
internal object EchoConsole : ConsoleCommand { internal object EchoConsole : ConsoleCommand {
/** /**

View File

@@ -5,7 +5,7 @@ import net.torvald.terrarum.ccR
import net.torvald.terrarum.ui.ConsoleWindow import net.torvald.terrarum.ui.ConsoleWindow
/** /**
* Created by minjaesong on 16-04-25. * Created by minjaesong on 2016-04-25.
*/ */
internal object EchoError : ConsoleCommand { internal object EchoError : ConsoleCommand {
override fun execute(args: Array<String>) { override fun execute(args: Array<String>) {

View File

@@ -6,7 +6,7 @@ import net.torvald.terrarum.Terrarum
import java.io.IOException import java.io.IOException
/** /**
* Created by minjaesong on 16-02-10. * Created by minjaesong on 2016-02-10.
*/ */
internal object ExportAV : ConsoleCommand { internal object ExportAV : ConsoleCommand {
override fun execute(args: Array<String>) { override fun execute(args: Array<String>) {

View File

@@ -9,7 +9,7 @@ import java.io.*
import java.util.HashMap import java.util.HashMap
/** /**
* Created by minjaesong on 16-01-17. * Created by minjaesong on 2016-01-17.
*/ */
internal object ExportMap : ConsoleCommand { internal object ExportMap : ConsoleCommand {

View File

@@ -1,7 +1,7 @@
package net.torvald.terrarum.console package net.torvald.terrarum.console
/** /**
* Created by minjaesong on 16-01-18. * Created by minjaesong on 2016-01-18.
*/ */
internal object ForceGC : ConsoleCommand { internal object ForceGC : ConsoleCommand {
override fun execute(args: Array<String>) { override fun execute(args: Array<String>) {

View File

@@ -4,7 +4,7 @@ import net.torvald.terrarum.*
import net.torvald.terrarum.Terrarum import net.torvald.terrarum.Terrarum
/** /**
* Created by minjaesong on 16-01-19. * Created by minjaesong on 2016-01-19.
*/ */
internal object GetAV : ConsoleCommand { internal object GetAV : ConsoleCommand {

View File

@@ -7,7 +7,7 @@ import net.torvald.terrarum.gameactors.Player
import net.torvald.terrarumsansbitmap.gdx.GameFontBase import net.torvald.terrarumsansbitmap.gdx.GameFontBase
/** /**
* Created by minjaesong on 16-02-17. * Created by minjaesong on 2016-02-17.
*/ */
internal object GetFactioning : ConsoleCommand { internal object GetFactioning : ConsoleCommand {
val ccW = GameFontBase.toColorCode(0xFFFF) val ccW = GameFontBase.toColorCode(0xFFFF)

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.console
import net.torvald.terrarum.langpack.Lang import net.torvald.terrarum.langpack.Lang
/** /**
* Created by minjaesong on 16-01-22. * Created by minjaesong on 2016-01-22.
*/ */
internal object GetLocale : ConsoleCommand { internal object GetLocale : ConsoleCommand {
override fun execute(args: Array<String>) { override fun execute(args: Array<String>) {

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.console
import net.torvald.terrarum.Terrarum import net.torvald.terrarum.Terrarum
/** /**
* Created by minjaesong on 16-03-20. * Created by minjaesong on 2016-03-20.
*/ */
internal object GetTime : ConsoleCommand { internal object GetTime : ConsoleCommand {
override fun execute(args: Array<String>) { override fun execute(args: Array<String>) {

View File

@@ -8,7 +8,7 @@ import java.io.FileWriter
import java.io.IOException import java.io.IOException
/** /**
* Created by minjaesong on 16-02-10. * Created by minjaesong on 2016-02-10.
*/ */
internal object GsonTest : ConsoleCommand { internal object GsonTest : ConsoleCommand {
override fun execute(args: Array<String>) { override fun execute(args: Array<String>) {

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.console
import net.torvald.terrarum.langpack.Lang import net.torvald.terrarum.langpack.Lang
/** /**
* Created by minjaesong on 16-03-22. * Created by minjaesong on 2016-03-22.
*/ */
internal object Help : ConsoleCommand { internal object Help : ConsoleCommand {
override fun execute(args: Array<String>) { override fun execute(args: Array<String>) {

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.console
import net.torvald.terrarum.langpack.Lang import net.torvald.terrarum.langpack.Lang
/** /**
* Created by minjaesong on 16-07-11. * Created by minjaesong on 2016-07-11.
*/ */
internal object LangTest : ConsoleCommand { internal object LangTest : ConsoleCommand {
override fun printUsage() { override fun printUsage() {

View File

@@ -4,7 +4,7 @@ import com.badlogic.gdx.Gdx
import com.badlogic.gdx.audio.Music import com.badlogic.gdx.audio.Music
/** /**
* Created by minjaesong on 16-08-02. * Created by minjaesong on 2016-08-02.
*/ */
internal object MusicTest : ConsoleCommand { internal object MusicTest : ConsoleCommand {

View File

@@ -4,7 +4,7 @@ import net.torvald.terrarum.langpack.Lang
import java.util.* import java.util.*
/** /**
* Created by minjaesong on 16-07-04. * Created by minjaesong on 2016-07-04.
*/ */
internal object PrintRandomTips : ConsoleCommand { internal object PrintRandomTips : ConsoleCommand {
override fun execute(args: Array<String>) { override fun execute(args: Array<String>) {

View File

@@ -1,7 +1,7 @@
package net.torvald.terrarum.console package net.torvald.terrarum.console
/** /**
* Created by minjaesong on 16-01-15. * Created by minjaesong on 2016-01-15.
*/ */
internal object QuitApp : ConsoleCommand { internal object QuitApp : ConsoleCommand {

View File

@@ -4,7 +4,7 @@ import net.torvald.terrarum.*
import net.torvald.terrarum.Terrarum import net.torvald.terrarum.Terrarum
/** /**
* Created by minjaesong on 16-06-16. * Created by minjaesong on 2016-06-16.
*/ */
internal object Seed : ConsoleCommand { internal object Seed : ConsoleCommand {

View File

@@ -4,7 +4,7 @@ import net.torvald.terrarum.*
import net.torvald.terrarum.Terrarum import net.torvald.terrarum.Terrarum
/** /**
* Created by minjaesong on 16-01-15. * Created by minjaesong on 2016-01-15.
*/ */
internal object SetAV : ConsoleCommand { internal object SetAV : ConsoleCommand {

View File

@@ -4,7 +4,7 @@ import net.torvald.terrarum.langpack.Lang
import net.torvald.terrarum.Terrarum import net.torvald.terrarum.Terrarum
/** /**
* Created by minjaesong on 16-01-23. * Created by minjaesong on 2016-01-23.
*/ */
internal object SetBulletin : ConsoleCommand { internal object SetBulletin : ConsoleCommand {
override fun execute(args: Array<String>) { override fun execute(args: Array<String>) {

View File

@@ -5,7 +5,7 @@ import net.torvald.terrarum.worlddrawer.LightmapRenderer
import net.torvald.terrarum.Terrarum import net.torvald.terrarum.Terrarum
/** /**
* Created by minjaesong on 16-02-17. * Created by minjaesong on 2016-02-17.
*/ */
internal object SetGlobalLightOverride : ConsoleCommand { internal object SetGlobalLightOverride : ConsoleCommand {

View File

@@ -6,7 +6,7 @@ import net.torvald.terrarum.Terrarum
import java.io.IOException import java.io.IOException
/** /**
* Created by minjaesong on 16-01-25. * Created by minjaesong on 2016-01-25.
*/ */
internal object SetLocale : ConsoleCommand { internal object SetLocale : ConsoleCommand {
override fun execute(args: Array<String>) { override fun execute(args: Array<String>) {

View File

@@ -4,7 +4,7 @@ import net.torvald.terrarum.gameworld.WorldTime
import net.torvald.terrarum.Terrarum import net.torvald.terrarum.Terrarum
/** /**
* Created by minjaesong on 16-03-20. * Created by minjaesong on 2016-03-20.
*/ */
internal object SetTime : ConsoleCommand { internal object SetTime : ConsoleCommand {
override fun execute(args: Array<String>) { override fun execute(args: Array<String>) {

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.console
import net.torvald.terrarum.Terrarum import net.torvald.terrarum.Terrarum
/** /**
* Created by minjaesong on 16-03-20. * Created by minjaesong on 2016-03-20.
*/ */
internal object SetTimeDelta : ConsoleCommand { internal object SetTimeDelta : ConsoleCommand {

View File

@@ -6,7 +6,7 @@ import net.torvald.terrarum.worlddrawer.WorldCamera
import org.dyn4j.geometry.Vector2 import org.dyn4j.geometry.Vector2
/** /**
* Created by minjaesong on 16-03-05. * Created by minjaesong on 2016-03-05.
*/ */
internal object SpawnPhysTestBall : ConsoleCommand { internal object SpawnPhysTestBall : ConsoleCommand {
@Throws(Exception::class) @Throws(Exception::class)

View File

@@ -5,7 +5,7 @@ import net.torvald.terrarum.Terrarum
import net.torvald.terrarum.gameactors.ActorWithPhysics import net.torvald.terrarum.gameactors.ActorWithPhysics
/** /**
* Created by minjaesong on 16-01-24. * Created by minjaesong on 2016-01-24.
*/ */
internal object Teleport : ConsoleCommand { internal object Teleport : ConsoleCommand {

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.console
import net.torvald.terrarum.Terrarum import net.torvald.terrarum.Terrarum
/** /**
* Created by minjaesong on 16-01-19. * Created by minjaesong on 2016-01-19.
*/ */
internal object ToggleNoClip : ConsoleCommand { internal object ToggleNoClip : ConsoleCommand {
override fun execute(args: Array<String>) { override fun execute(args: Array<String>) {

View File

@@ -6,7 +6,7 @@ import net.torvald.terrarum.TerrarumAppLoader
import net.torvald.terrarum.langpack.Lang import net.torvald.terrarum.langpack.Lang
/** /**
* Created by minjaesong on 16-04-23. * Created by minjaesong on 2016-04-23.
*/ */
internal object Version : ConsoleCommand { internal object Version : ConsoleCommand {
override fun execute(args: Array<String>) { override fun execute(args: Array<String>) {

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.console
import net.torvald.terrarum.Terrarum import net.torvald.terrarum.Terrarum
/** /**
* Created by minjaesong on 16-01-25. * Created by minjaesong on 2016-01-25.
*/ */
internal object Zoom : ConsoleCommand { internal object Zoom : ConsoleCommand {
override fun execute(args: Array<String>) { override fun execute(args: Array<String>) {

View File

@@ -5,7 +5,7 @@ import net.torvald.terrarum.gameactors.ai.ActorAI
/** /**
* Note: AI-controlled actor must be 'Controllable' * Note: AI-controlled actor must be 'Controllable'
* *
* Created by minjaesong on 16-01-31. * Created by minjaesong on 2016-01-31.
*/ */
interface AIControlled { interface AIControlled {
val ai: ActorAI val ai: ActorAI

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.gameactors
/** /**
* See [res/raw/Creature_raw_doc.md] for information about raw. * See [res/raw/Creature_raw_doc.md] for information about raw.
* *
* Created by minjaesong on 16-04-02. * Created by minjaesong on 2016-04-02.
*/ */
object AVKey { object AVKey {
const val BUFF = "buff" const val BUFF = "buff"

View File

@@ -10,7 +10,7 @@ typealias ActorID = Int
/** /**
* @param renderOrder invisible/technical must use "Actor.RenderOrder.MIDDLE" * @param renderOrder invisible/technical must use "Actor.RenderOrder.MIDDLE"
* *
* Created by minjaesong on 15-12-31. * Created by minjaesong on 2015-12-31.
*/ */
abstract class Actor(val renderOrder: RenderOrder) : Comparable<Actor>, Runnable { abstract class Actor(val renderOrder: RenderOrder) : Comparable<Actor>, Runnable {

View File

@@ -17,7 +17,7 @@ import java.util.*
* Humanoid actor class to provide same controlling function (such as work, jump) * Humanoid actor class to provide same controlling function (such as work, jump)
* Also applies unreal air friction for movement control * Also applies unreal air friction for movement control
* *
* Created by minjaesong on 16-10-24. * Created by minjaesong on 2016-10-24.
*/ */
open class ActorHumanoid( open class ActorHumanoid(
world: GameWorld, world: GameWorld,

View File

@@ -13,7 +13,7 @@ import java.util.concurrent.locks.Lock
import java.util.concurrent.locks.ReentrantLock import java.util.concurrent.locks.ReentrantLock
/** /**
* Created by minjaesong on 16-03-15. * Created by minjaesong on 2016-03-15.
*/ */
class ActorInventory(val actor: Pocketed, var maxCapacity: Int, var capacityMode: Int) { class ActorInventory(val actor: Pocketed, var maxCapacity: Int, var capacityMode: Int) {

View File

@@ -28,7 +28,7 @@ typealias Second = Float
* @param immobileBody use realistic air friction (1/1000 of "unrealistic" canonical setup) * @param immobileBody use realistic air friction (1/1000 of "unrealistic" canonical setup)
* @param usePhysics use usePhysics simulation * @param usePhysics use usePhysics simulation
* *
* Created by minjaesong on 16-01-13. * Created by minjaesong on 2016-01-13.
*/ */
open class ActorWithPhysics(val world: GameWorld, renderOrder: RenderOrder, val immobileBody: Boolean = false, var usePhysics: Boolean = true) : open class ActorWithPhysics(val world: GameWorld, renderOrder: RenderOrder, val immobileBody: Boolean = false, var usePhysics: Boolean = true) :
ActorWithBody(renderOrder) { ActorWithBody(renderOrder) {

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.gameactors
import net.torvald.terrarum.itemproperties.GameItem import net.torvald.terrarum.itemproperties.GameItem
/** /**
* Created by minjaesong on 16-01-31. * Created by minjaesong on 2016-01-31.
*/ */
interface CanBeAnItem { interface CanBeAnItem {

View File

@@ -4,7 +4,7 @@ package net.torvald.terrarum.gameactors
/** /**
* Actors that has movement controlled by Keyboard or AI * Actors that has movement controlled by Keyboard or AI
* *
* Created by minjaesong on 15-12-31. * Created by minjaesong on 2015-12-31.
*/ */
interface Controllable { interface Controllable {
fun keyDown(keycode: Int): Boolean fun keyDown(keycode: Int): Boolean

View File

@@ -4,7 +4,7 @@ import net.torvald.terrarum.gameworld.GameWorld
/** /**
* Created by minjaesong on 16-02-05. * Created by minjaesong on 2016-02-05.
*/ */
object CreatureBuilder { object CreatureBuilder {

View File

@@ -7,7 +7,7 @@ import net.torvald.terrarum.blockproperties.BlockCodex
import net.torvald.terrarum.gameworld.GameWorld import net.torvald.terrarum.gameworld.GameWorld
/** /**
* Created by minjaesong on 16-03-15. * Created by minjaesong on 2016-03-15.
*/ */
open class DroppedItem(world: GameWorld, private val item: GameItem) : ActorWithPhysics(world, Actor.RenderOrder.MIDTOP) { open class DroppedItem(world: GameWorld, private val item: GameItem) : ActorWithPhysics(world, Actor.RenderOrder.MIDTOP) {

View File

@@ -4,7 +4,7 @@ import net.torvald.terrarum.gameactors.faction.Faction
import java.util.* import java.util.*
/** /**
* Created by minjaesong on 16-02-15. * Created by minjaesong on 2016-02-15.
*/ */
interface Factionable { interface Factionable {

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.gameactors
import net.torvald.terrarum.gameworld.GameWorld import net.torvald.terrarum.gameworld.GameWorld
/** /**
* Created by minjaesong on 16-06-17. * Created by minjaesong on 2016-06-17.
*/ */
open class FixtureBase(world: GameWorld, physics: Boolean = true) : open class FixtureBase(world: GameWorld, physics: Boolean = true) :
ActorWithPhysics(world, Actor.RenderOrder.BEHIND, immobileBody = true, usePhysics = physics) { ActorWithPhysics(world, Actor.RenderOrder.BEHIND, immobileBody = true, usePhysics = physics) {

View File

@@ -9,7 +9,7 @@ import net.torvald.terrarumsansbitmap.gdx.TextureRegionPack
import java.util.* import java.util.*
/** /**
* Created by minjaesong on 16-06-17. * Created by minjaesong on 2016-06-17.
*/ */
internal class FixtureTikiTorch(world: GameWorld) : FixtureBase(world), Luminous { internal class FixtureTikiTorch(world: GameWorld) : FixtureBase(world), Luminous {

View File

@@ -13,7 +13,7 @@ typealias AnyPlayer = HistoricalFigure
* *
* NOTE: all canonical NPCs are must be HistoricalFigure!! (double excl mark, bitch) * NOTE: all canonical NPCs are must be HistoricalFigure!! (double excl mark, bitch)
* *
* Created by minjaesong on 16-10-10. * Created by minjaesong on 2016-10-10.
*/ */
open class HistoricalFigure( open class HistoricalFigure(
world: GameWorld, world: GameWorld,

View File

@@ -8,7 +8,7 @@ import org.dyn4j.geometry.Vector2
* *
* Can also use Hitbox.fromTwoPoints(x1, y1, x2, y2 * Can also use Hitbox.fromTwoPoints(x1, y1, x2, y2
* *
* Created by minjaesong on 16-01-15. * Created by minjaesong on 2016-01-15.
*/ */
class Hitbox(x1: Double, y1: Double, width: Double, height: Double) { class Hitbox(x1: Double, y1: Double, width: Double, height: Double) {

View File

@@ -10,7 +10,7 @@ import net.torvald.terrarum.itemproperties.Material
/** /**
* @param ai AI class. Use LuaAIWrapper for Lua script * @param ai AI class. Use LuaAIWrapper for Lua script
* *
* Created by minjaesong on 16-01-31. * Created by minjaesong on 2016-01-31.
*/ */
open class HumanoidNPC( open class HumanoidNPC(
world: GameWorld, world: GameWorld,

View File

@@ -8,7 +8,7 @@ import net.torvald.terrarum.ModMgr
import java.security.SecureRandom import java.security.SecureRandom
/** /**
* Created by minjaesong on 16-03-25. * Created by minjaesong on 2016-03-25.
*/ */
object InjectCreatureRaw { object InjectCreatureRaw {

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.gameactors
import java.util.* import java.util.*
/** /**
* Created by minjaesong on 16-02-20. * Created by minjaesong on 2016-02-20.
*/ */
interface LandHolder { interface LandHolder {

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.gameactors
import com.badlogic.gdx.graphics.Color import com.badlogic.gdx.graphics.Color
/** /**
* Created by minjaesong on 16-02-19. * Created by minjaesong on 2016-02-19.
*/ */
interface Luminous { interface Luminous {

View File

@@ -5,7 +5,7 @@ import java.util.*
/** /**
* Provides MDL interpretation, pre-compilation and stores state of the interpreter * Provides MDL interpretation, pre-compilation and stores state of the interpreter
* *
* Created by minjaesong on 16-07-30. * Created by minjaesong on 2016-07-30.
*/ */
class MDLInterpreterState { class MDLInterpreterState {
val stack = MagicArrayStack(20) val stack = MagicArrayStack(20)

View File

@@ -7,7 +7,7 @@ import net.torvald.terrarum.gameworld.GameWorld
import net.torvald.terrarum.worldgenerator.RoguelikeRandomiser import net.torvald.terrarum.worldgenerator.RoguelikeRandomiser
/** /**
* Created by minjaesong on 16-03-05. * Created by minjaesong on 2016-03-05.
*/ */
class PhysTestBall(world: GameWorld) : ActorWithPhysics(world, Actor.RenderOrder.MIDDLE, immobileBody = true) { class PhysTestBall(world: GameWorld) : ActorWithPhysics(world, Actor.RenderOrder.MIDDLE, immobileBody = true) {

View File

@@ -6,7 +6,7 @@ import net.torvald.terrarum.worlddrawer.LightmapRenderer
* A wrapper to support instant player changing (or possessing other NPCs maybe) * A wrapper to support instant player changing (or possessing other NPCs maybe)
* *
* @param actor : here you 'attach' the actor you wish to control * @param actor : here you 'attach' the actor you wish to control
* Created by minjaesong on 16-10-23. * Created by minjaesong on 2016-10-23.
*/ */
class PlayableActorDelegate(val actor: ActorHumanoid) { class PlayableActorDelegate(val actor: ActorHumanoid) {

View File

@@ -6,7 +6,7 @@ import net.torvald.terrarum.gameworld.GameWorld
/** /**
* Game player (YOU!) * Game player (YOU!)
* *
* Created by minjaesong on 15-12-31. * Created by minjaesong on 2015-12-31.
*/ */
class Player(world: GameWorld, born: GameDate) : ActorHumanoid(world, born) { class Player(world: GameWorld, born: GameDate) : ActorHumanoid(world, born) {

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.gameactors
import net.torvald.terrarum.Terrarum import net.torvald.terrarum.Terrarum
/** /**
* Created by minjaesong on 16-02-03. * Created by minjaesong on 2016-02-03.
*/ */
object PlayerBuilder { object PlayerBuilder {

View File

@@ -7,7 +7,7 @@ import net.torvald.terrarum.worlddrawer.FeaturesDrawer
import net.torvald.terrarumsansbitmap.gdx.TextureRegionPack import net.torvald.terrarumsansbitmap.gdx.TextureRegionPack
/** /**
* Created by minjaesong on 16-03-25. * Created by minjaesong on 2016-03-25.
*/ */
object PlayerBuilderCynthia { object PlayerBuilderCynthia {

View File

@@ -9,7 +9,7 @@ import net.torvald.terrarum.blockproperties.Block
import net.torvald.terrarumsansbitmap.gdx.TextureRegionPack import net.torvald.terrarumsansbitmap.gdx.TextureRegionPack
/** /**
* Created by minjaesong on 16-02-03. * Created by minjaesong on 2016-02-03.
*/ */
object PlayerBuilderSigrid { object PlayerBuilderSigrid {

View File

@@ -6,7 +6,7 @@ import net.torvald.terrarum.itemproperties.GameItem
import net.torvald.terrarum.itemproperties.ItemCodex import net.torvald.terrarum.itemproperties.ItemCodex
/** /**
* Created by minjaesong on 16-01-15. * Created by minjaesong on 2016-01-15.
*/ */
interface Pocketed { interface Pocketed {

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.gameactors
/** /**
* Projectile marker. Used to kill them when they're far away from the player, instead of making them sleep. * Projectile marker. Used to kill them when they're far away from the player, instead of making them sleep.
* *
* Created by minjaesong on 16-09-05. * Created by minjaesong on 2016-09-05.
*/ */
interface Projectile { interface Projectile {
} }

View File

@@ -4,7 +4,7 @@ import net.torvald.terrarum.gameworld.GameWorld
import org.dyn4j.geometry.Vector2 import org.dyn4j.geometry.Vector2
/** /**
* Created by minjaesong on 16-08-29. * Created by minjaesong on 2016-08-29.
*/ */
class ProjectileHoming( class ProjectileHoming(
world: GameWorld, world: GameWorld,

View File

@@ -13,7 +13,7 @@ import java.util.*
/** /**
* Simplest projectile. * Simplest projectile.
* *
* Created by minjaesong on 16-08-29. * Created by minjaesong on 2016-08-29.
*/ */
// TODO simplified, lightweight physics (does not call PhysicsSolver) // TODO simplified, lightweight physics (does not call PhysicsSolver)

View File

@@ -4,7 +4,7 @@ import com.badlogic.gdx.Gdx
import net.torvald.terrarum.Terrarum import net.torvald.terrarum.Terrarum
/** /**
* Created by minjaesong on 16-05-25. * Created by minjaesong on 2016-05-25.
*/ */
class ThreadActorUpdate(val startIndex: Int, val endIndex: Int) : Runnable { class ThreadActorUpdate(val startIndex: Int, val endIndex: Int) : Runnable {
override fun run() { override fun run() {

View File

@@ -4,7 +4,7 @@ import com.badlogic.gdx.graphics.Color
import net.torvald.terrarum.gameworld.GameWorld import net.torvald.terrarum.gameworld.GameWorld
/** /**
* Created by minjaesong on 16-04-26. * Created by minjaesong on 2016-04-26.
*/ */
class WeaponSwung(world: GameWorld, val itemID: Int) : ActorWithPhysics(world, Actor.RenderOrder.MIDTOP), Luminous { class WeaponSwung(world: GameWorld, val itemID: Int) : ActorWithPhysics(world, Actor.RenderOrder.MIDTOP), Luminous {
// just let the solver use AABB; it's cheap but works just enough // just let the solver use AABB; it's cheap but works just enough

View File

@@ -13,7 +13,7 @@ import org.luaj.vm2.lib.OneArgFunction
import org.luaj.vm2.lib.ZeroArgFunction import org.luaj.vm2.lib.ZeroArgFunction
/** /**
* Created by minjaesong on 16-10-24. * Created by minjaesong on 2016-10-24.
*/ */
internal class AILuaAPI(g: Globals, actor: ActorWithPhysics) { internal class AILuaAPI(g: Globals, actor: ActorWithPhysics) {

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.gameactors.ai
import net.torvald.terrarum.gameactors.HumanoidNPC import net.torvald.terrarum.gameactors.HumanoidNPC
/** /**
* Created by minjaesong on 16-03-02. * Created by minjaesong on 2016-03-02.
*/ */
interface ActorAI { interface ActorAI {
fun update(actor: HumanoidNPC, delta: Float) fun update(actor: HumanoidNPC, delta: Float)

View File

@@ -4,7 +4,7 @@ import net.torvald.random.HQRNG
import java.util.HashSet import java.util.HashSet
/** /**
* Created by minjaesong on 16-02-15. * Created by minjaesong on 2016-02-15.
*/ */
typealias FactionID = Int typealias FactionID = Int

View File

@@ -3,7 +3,7 @@ package net.torvald.terrarum.gameactors.faction
import java.util.* import java.util.*
/** /**
* Created by minjaesong on 16-05-09. * Created by minjaesong on 2016-05-09.
*/ */
object FactionCodex { object FactionCodex {
val factionContainer = ArrayList<Faction>() val factionContainer = ArrayList<Faction>()

View File

@@ -6,7 +6,7 @@ import net.torvald.terrarum.ModMgr
import java.io.IOException import java.io.IOException
/** /**
* Created by minjaesong on 16-02-15. * Created by minjaesong on 2016-02-15.
*/ */
object FactionFactory { object FactionFactory {

View File

@@ -5,7 +5,7 @@ import net.torvald.terrarum.gameactors.ActorWithPhysics
import java.util.* import java.util.*
/** /**
* Created by minjaesong on 16-04-22. * Created by minjaesong on 2016-04-22.
*/ */
object CollisionSolver { object CollisionSolver {

Some files were not shown because too many files have changed in this diff Show More