-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayer.java
More file actions
32 lines (28 loc) · 718 Bytes
/
Copy pathPlayer.java
File metadata and controls
32 lines (28 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.example.itay.sumika;
/**
* Created by itay on 18/11/17.
*/
public class Player {
boolean isTurn;
int imageId;
int numOfPlayer;//if 1= uneven if 2=even, maybe in future 3 player
public Player(Player player){
this.isTurn=player.isTurn;
this.imageId=player.imageId;
this.numOfPlayer=player.numOfPlayer;
}
public Player(int numOfPlayer, int imageId){
if(numOfPlayer==1)
this.isTurn=true;
else
this.isTurn=false;
this.numOfPlayer =numOfPlayer;
this.imageId=imageId;
}
public int getImageId(){
return imageId;
}
public int getNumOfPlayer() {
return numOfPlayer;
}
}