Skip to content
Snippets Groups Projects
Commit 9774d0e7 authored by EckBalu's avatar EckBalu
Browse files

Position done

parent 49cf757b
Branches master
No related tags found
1 merge request!1Javaimpl
package cell package cell
public class Position(x: Int, y: Int) { public class Position(x: Int, y: Int) {
x: Int = x private val x: Int = x
y: Int = y private val y: Int = y
public setPosition(x: Int, y: Int) { public fun setPosition(x: Int, y: Int) {
this.x = x this.x = x
this.y = y this.y = y
} }
public fun getX() : Int { return this.x }
public fun getY() : Int { return this.y }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment