Game.kt 463 Bytes
Newer Older
morkolai's avatar
morkolai committed
1
2
package com.mygdx.game.model

3
4
import com.badlogic.gdx.math.Vector3

morkolai's avatar
morkolai committed
5
6
//Logic of the game, holds a GameState, operations
//(((Controller???))) Model can change its own data, but has to be told by controller
morkolai's avatar
morkolai committed
7
8
9
10
11
12
13
14

class Game(gameState: GameState) {

    private var gameState: GameState

    init {
        this.gameState = gameState
    }
15
16
17
18

    fun getStartFieldCoordinates(): List<List<Vector3>>? {
        return this.gameState.getRules()?.generateStartFields()
    }
morkolai's avatar
morkolai committed
19
}