Compare commits

...

10 Commits

Author SHA1 Message Date
poopki b91f592dc1 Merge branch 'master' into GUI 10 months ago
poopki 38423f8df2 Merge branch 'Account' 3 years ago
poopki bcd543c979 Code optimization 3 years ago
poopki 84dbe56db4 Master_test 3 years ago
poopki 174ed17fb7 추가 'README.md' 3 years ago
poopki ccae645f93 Logo 3 years ago
poopki 7864c65aee Architecture 3 years ago
poopki 7ae8860680 Wiki img upload 3 years ago
poopki 339bf481b3 revert 55027d831a 3 years ago
poopki 55027d831a 추가 'IMG' 3 years ago
  1. 31
      UserInfo.java

@ -1,28 +1,37 @@
package org.poopki.duckdns.user_db; package org.poopki.duckdns.user_db;
import java.util.*; import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
public class UserInfo extends Status { public class UserInfo extends Status {
private UUID m_UUID; private UUID m_UUID;
private String m_Name; private String m_Name;
private Map<String, UUID> m_GroupUUID = new HashMap<String, UUID>(); private static Map<String, Integer> m_status = new HashMap<String, Integer>();
public UserInfo(UUID uuid, String Name, UUID Nation, UUID Squad, UUID Farm, UUID Party){ //UserInfo 초기화
super(100,100,1,10,10,10,10); //HP, MP, LEV, STR, DEX, INT, LUK private int m_Nation;
private int m_Squad;
private int m_Farm;
public UserInfo(UUID uuid, String Name, int Nation, int Squad, int Farm){ //UserInfo 초기화
super(100,100,1,10,10,10,10);
m_UUID = uuid; m_UUID = uuid;
m_Name = Name; m_Name = Name;
m_Nation = Nation;
m_GroupUUID.put("Nation", Nation); m_Squad = Squad;
m_GroupUUID.put("Squad", Squad); m_Farm = Farm;
m_GroupUUID.put("Farm", Farm);
m_GroupUUID.put("Party", Party);
} }
public void SetGroupUUID(String GroupType, UUID m_UUID){ m_GroupUUID.put(GroupType, m_UUID); } public void JoinNation(int Nation) { m_Nation = Nation; }
public UUID GetGroupUUID(String GroupType){ return m_GroupUUID.get(GroupType); } public void JoinSquad(int Squad) { m_Squad = Squad; }
public void JoinFarm(int Farm) { m_Farm = Farm; }
public String getUserName(){ public String getUserName(){
return m_Name; return m_Name;
} }
public UUID getUserUUID(){ return m_UUID; } public UUID getUserUUID(){ return m_UUID; }
} }

Loading…
Cancel
Save