|
|
@ -12,7 +12,7 @@ class TypeShape(val type: EnumTypeShape/*,private val showShape: Array<Array<Arr
|
|
|
|
init {
|
|
|
|
init {
|
|
|
|
when(type){
|
|
|
|
when(type){
|
|
|
|
EnumTypeShape.IShape -> {
|
|
|
|
EnumTypeShape.IShape -> {
|
|
|
|
couleur = 1 // Put the color of the shape
|
|
|
|
couleur = 1 // Set the color of the shape
|
|
|
|
showShape = Array(4){ IntArray(4 ) { 0 } } // tableau a 2 dimensions a 0
|
|
|
|
showShape = Array(4){ IntArray(4 ) { 0 } } // tableau a 2 dimensions a 0
|
|
|
|
for( i in 0..3){
|
|
|
|
for( i in 0..3){
|
|
|
|
showShape[0][i] = 1 // Create shape
|
|
|
|
showShape[0][i] = 1 // Create shape
|
|
|
|