Exemple #1
0
 public Creature(NCharacterInfo info) : base(info.Entity)
 {
     this.Info       = info;
     this.Define     = DataManager.Instance.Characters[info.ConfigId];
     this.Attributes = new Attributes();
     this.Attributes.Init(this.Define, this.Info.Level, this.GetEquips(), this.Info.attrDynamic);
     this.SkillMgr  = new SkillManager(this);
     this.BuffMgr   = new BuffManager(this);
     this.EffectMgr = new EffectManager(this);
 }
Exemple #2
0
    public void Setup(CharacterDefine c)
    {
        charDef        = c;
        CurStrengthLev = c.DefaultStrLev;
        CurAgilityLev  = c.DefaultAgiLev;
        CurIntellLev   = c.DefaultIntLev;
        CurSpiritLev   = c.DefaultSprLev;

        ResetMovePoint();
    }
Exemple #3
0
 public CharacterBase(CharacterType type, int tid, int level, Vector3Int pos, Vector3Int dir) :
     base(pos, dir)
 {
     this.Info        = new NCharacterInfo();
     this.Info.Type   = type;
     this.Info.Level  = level;
     this.Info.Tid    = tid;
     this.Info.Entity = this.EntityData;
     this.Define      = DataManager.Instance.Characters[this.Info.Tid];
     this.Info.Name   = this.Define.Name;
 }
Exemple #4
0
        public void LoadInitAttrbute(AttributeData attr, CharacterDefine define)
        {
            attr.MaxHp = define.MaxHp;
            attr.MaxMp = define.MaxMp;

            attr.STR  = define.STR;
            attr.INT  = define.INT;
            attr.DEX  = define.DEX;
            attr.AD   = define.AD;
            attr.AP   = define.AP;
            attr.DEF  = define.DEF;
            attr.MDEF = define.MDEF;
            attr.SPD  = define.SPD;
            attr.CRI  = define.CRI;
        }
Exemple #5
0
        public Creature(CharacterType type, int configId, int level, Vector3Int pos, Vector3Int dir) :
            base(pos, dir)
        {
            this.Info          = new NCharacterInfo();
            this.Info.Type     = type;
            this.Info.Level    = level;
            this.Info.ConfigId = configId;
            this.Info.Entity   = this.EntityData;
            this.Info.EntityId = this.entityId;
            this.Define        = DataManager.Instance.Characters[configId];
            this.Info.Name     = this.Define.Name;

            InitSkills();
            InitBuffs();
            this.Attributes = new Attributes();
            this.Attributes.Init(this.Define, this.Info.Level, this.GetEquips(), this.Info.attrDynamic);
            this.Info.attrDynamic = this.Attributes.DynamicAttr;
        }
Exemple #6
0
        public void Init(CharacterDefine define, int level, List <EquipDefine> equips, NAttributeDynamic DynamicAttrAttr)
        {
            this.DynamicAttr = DynamicAttrAttr;
            this.Level       = level;
            this.LoadInitAttrbute(this.Initial, define);
            this.LoadGrowthAttribute(this.Growth, define);
            this.LoadEquipAttribute(this.Equip, equips);
            this.InitBasicAttributes();
            this.InitSecondaryAttributes();

            this.InitFinalAttributes();
            if (this.DynamicAttr == null)
            {
                this.DynamicAttr = new NAttributeDynamic();
                this.HP          = this.MaxHP;
                this.MP          = this.MaxMp;
            }
            else
            {
                this.HP = this.DynamicAttr.Hp;
                this.MP = this.DynamicAttr.Mp;
            }
        }
Exemple #7
0
 public FontDefine(Reader reader)
 {
     if (Settings.s.platform == Settings.Platform.GC ||
         Settings.s.platform == Settings.Platform.Xbox360 ||
         Settings.s.mode == Settings.Mode.RaymanArenaXbox)
     {
         name = reader.ReadString(50);
     }
     characters = new CharacterDefine[256];
     for (int i = 0; i < characters.Length; i++)
     {
         characters[i] = new CharacterDefine(reader);
     }
     if (Settings.s.game != Settings.Game.Dinosaur && Settings.s.game != Settings.Game.LargoWinch)
     {
         kerningInfo = new KerningInfo[200];
         for (int i = 0; i < kerningInfo.Length; i++)
         {
             kerningInfo[i] = new KerningInfo(reader);
         }
         unk = reader.ReadUInt16();
     }
 }
Exemple #8
0
 public Character(NCharacterInfo Info) : base(Info.Entity)
 {
     this.nCharacterInfo  = Info;
     this.characterDefine = DataManager.Instance.Characters[Info.ConfigId];
 }
Exemple #9
0
 public void LoadGrowthAttribute(AttributeData attr, CharacterDefine define)
 {
     attr.STR = define.STR;
     attr.INT = define.INT;
     attr.DEX = define.DEX;
 }
Exemple #10
0
 /// <summary>
 /// constructor method
 /// </summary>
 /// <param name="charInfo"></param>
 public Character(NCharacterInfo charInfo) : base(charInfo.Entity)
 {
     this.info   = charInfo;
     this.define = DataManager.Instance.Characters[charInfo.Tid];
 }
Exemple #11
0
 private void LoadGrowthAttribute(AttributeData attr, CharacterDefine define)
 {
     attr.STR = define.GrowthSTR;
     attr.INT = define.GrowthINT;
     attr.DEX = define.GrowthDEX;
 }