Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package data;
- //Autor: Luciano (G Toyz).
- public class DataGame {
- private static final int MAX_USERS = 1;
- Users [] User = new Users [MAX_USERS];
- //Map<int,Usuario>;
- }
- enum Privilege{User,GameMaster,Admin}
- class Pos{
- int mapa;
- byte x;
- byte y;
- }
- class Users{
- private String nick;
- private Pos position;
- private Privilege privilege;
- public void setPosition(Pos position){
- this.position = position;
- }
- public Pos getPosition(){
- return position;
- }
- public void setNick(String nick){
- this.nick = nick;
- }
- public String getNick(){
- return nick;
- }
- public void setGM(Privilege privilege){
- this.privilege = privilege;
- }
- public boolean isGM(){
- return (privilege == Privilege.User);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement