package com.example.cmpt362_group30_maze_game.game

// This class represents a generic renderable game object which has position, rotation, and scale
class GameObject (var xPos : Float = 0.0f, var yPos : Float = 0.0f, var zPos: Float = 0.0f,
                  var xRotate : Float = 0.0f, var yRotate : Float = 0.0f, var zRotate: Float = 0.0f,
                  var xScale : Float = 1.0f, var yScale : Float = 1.0f, var zScale: Float = 1.0f){
    var mesh : Mesh? = null

    // helper function to move game object
    fun displace(xDisplacement : Float, yDisplacement : Float, zDisplacement : Float){
        xPos += xDisplacement
        yPos += yDisplacement
        zPos += zDisplacement
    }

    // helper function to scale game object
    fun setObjectScale(xScale : Float, yScale : Float, zScale : Float){
        this.xScale = xScale
        this.yScale = yScale
        this.zScale = zScale
    }
}