Показать сообщение отдельно
Непрочитано 21.04.2012, 21:53   #289
Аватар для ALF.
Герой

По умолчанию Re: Работа над Goddess of Destruction (part 5)

Моя старая наработка, которую я так и не довел до ума...
т.к. живой сервер, нету времени на эксперименты пока что ((((


PHP код:
package l2p.gameserver.model.base;

/**
 * @author ALF
 * Новая групировка классов
 */
public enum ClassCategory {
    
    
Fighter(Race.human88,55,82,39,39,38,33,44,132,80,9,23,8,23.5false),
    
Magic(Race.human38,27,41,79,78,78,28,40,120,78,7.5,22.8,6.5,22.5true),
    
ElfFighter(Race.elf,82,61,82,41,38,37,36,46,125,90,7.5,24,7.5,23false),
    
ElfMagic(Race.elf,36,32,38,74,84,77,30,41,122,85,7.5,24,7.5,23true),    
    
DarkelfFighter(Race.darkelf,92,56,77,42,39,35,35,45,122,85,7.5,24,7,23.5false),
    
DarkelfMagic(Race.darkelf,39,30,37,85,77,73,30,41,122,85,7.5,24,7.5,23true),    
    
OrcFighter(Race.orc,88,50,87,37,38,41,31,42,117,70,11,28,7,27false),
    
Shaman(Race.orc,40,23,43,77,74,84,30,41,121,70,7,27.5,8,25.5true),    
    
DwarfFighter(Race.dwarf,87,53,85,39,37,40,33,43,132,80,9,18,5,19false),
    
DwarfMagic(Race.dwarf,40,24,42,82,72,81,28,40,120,78,9,18,5,19true),        // GoD    
    
KamaelSoldier(Race.kamael,88,57,80,43,36,37,35,45,122,85,7.5,24,7,23false),
    
KamaelMagic(Race.kamael,40,28,38,82,78,75,30,41,122,85,7.5,24,7,23true);        // GoD
    

    
private static int[] _fighterItems = {1147,1146,10,2369,5588};
    private static 
int[] _magicItems = {425,461,6,5588};
    
    private final 
Race race;
    private final 
int STR;
    private final 
int DEX;
    private final 
int CON;
    private final 
int INT;
    private final 
int WIT;
    private final 
int MEN;
    private final 
int ACC;
    private final 
int CRT;
    private final 
int RUN_SPD;
    private final 
int WALK_SPD;
    private final 
double mcR;
    private final 
double mcH;    
    private final 
double fmcR;
    private final 
double fmcH;    
    private final 
boolean isMage;
    
    private 
ClassCategory(Race aint b,int c,int d,int e,int f,int g,int h,int i,int j,
            
int k,double m,double n,double o,double p,boolean _isMagic)
    {
        
race a;
        
STR b;
        
DEX c;
        
CON d;
        
INT e;
        
WIT f;
        
MEN g;
        
ACC h;
        
CRT i;
        
RUN_SPD j;
        
WALK_SPD k;
        
mcR m;
        
mcH n;
        
fmcR o;
        
fmcH p;
        
isMage _isMagic;
    }

    public 
Race getRace() {
        return 
race;
    }

    public 
int getSTR() {
        return 
STR;
    }

    public 
int getDEX() {
        return 
DEX;
    }

    public 
int getCON() {
        return 
CON;
    }

    public 
int getINT() {
        return 
INT;
    }

    public 
int getWIT() {
        return 
WIT;
    }

    public 
int getMEN() {
        return 
MEN;
    }

    public 
boolean isMage() {
        return 
isMage;
    }
    
    public 
int getPATK(){
        return 
isMage() ? 4;        
    }
    
    public 
int getMATK(){
        return 
6;        
    }
    
    public 
int getPDEF(){
        return 
isMage() ? 54 80;        
    }
    
    public 
int getMDEF(){
        return 
41;        
    }
    
    public 
int[] getItems()
    {
        if (
isMage())
            return 
_magicItems;
        return 
_fighterItems;
    }

    public 
int getACC() {
        return 
ACC;
    }

    public 
int getCRT() {
        return 
CRT;
    }

    public 
int getRUN_SPD() {
        return 
RUN_SPD;
    }

    public 
int getWALK_SPD() {
        return 
WALK_SPD;
    }

    public 
double getMcR() {
        return 
mcR;
    }

    public 
double getFmcR() {
        return 
fmcR;
    }

    public 
double getMcH() {
        return 
mcH;
    }

    public 
double getFmcH() {
        return 
fmcH;
    }    

ALF. вне форума Отправить сообщение для ALF. с помощью ICQ Отправить сообщение для ALF. с помощью Skype™