Status base code

Status
poopki 3 years ago
parent f76f4ba02b
commit 0e659d671e
  1. 29
      Status.java
  2. 4
      UserInfo.java
  3. 1
      User_DB.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;
}
}

@ -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; }

@ -26,7 +26,6 @@ public final class User_DB extends JavaPlugin implements Listener {
}
getServer().getPluginManager().registerEvents(new UserJoin(m_InfoArrayInstance, m_AccountArrayInstance),this);
}
@Override

Loading…
Cancel
Save