diff --git a/Status.java b/Status.java new file mode 100644 index 0000000..0ff7531 --- /dev/null +++ b/Status.java @@ -0,0 +1,29 @@ +package org.poopki.duckdns.user_db; + +public class Status { + int m_HP; + int m_MP; + int m_Level; + + int m_STR; + int m_DEX; + int m_INT; + int m_LUK; + + int m_PATK; + int m_PDEF; + int m_MATK; + int m_MDEF; + //방어율 = (방어력 / (100 + 방어력) + //Add Equipment Class instance + public Status(int HP, int MP, int Level, int STR, int DEX, int INT, int LUK){ + m_HP = HP; + m_MP = MP; + m_Level = Level; + + m_STR = STR; + m_DEX = DEX; + m_INT = INT; + m_LUK = LUK; + } +} diff --git a/UserInfo.java b/UserInfo.java index bd11838..9930e9e 100644 --- a/UserInfo.java +++ b/UserInfo.java @@ -4,7 +4,7 @@ import java.util.HashMap; import java.util.Map; import java.util.UUID; -public class UserInfo { +public class UserInfo extends Status { private UUID m_UUID; private String m_Name; @@ -15,12 +15,14 @@ public class UserInfo { 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_Name = Name; m_Nation = Nation; m_Squad = Squad; m_Farm = Farm; } + public void JoinNation(int Nation) { m_Nation = Nation; } public void JoinSquad(int Squad) { m_Squad = Squad; } public void JoinFarm(int Farm) { m_Farm = Farm; } diff --git a/User_DB.java b/User_DB.java index 0318d38..9c38e24 100644 --- a/User_DB.java +++ b/User_DB.java @@ -26,7 +26,6 @@ public final class User_DB extends JavaPlugin implements Listener { } getServer().getPluginManager().registerEvents(new UserJoin(m_InfoArrayInstance, m_AccountArrayInstance),this); - } @Override