public LiveMonster(int level, Monster mon, Point point, bool isLeft) { Id = World.WorldInfoManager.GetCardFakeId(); Level = level; Avatar = mon; Avatar.UpgradeToLevel(level); Position = point; IsLeft = isLeft; Action = 0; roundPast = 0; HpBar = new HpBar(this); SkillManager = new SkillManager(this); AttackType = (int)CardElements.None; CanAttack = true; BuffManager = new BuffManager(this); aiController = new MonsterAi(this); LiveMonsterToolTip = new LiveMonsterToolTip(this); SetBasicData(); HpBar.SetHp(Avatar.Hp); MonsterCoverBox = new MonsterCoverBox(this); }
public LiveMonster(int id, int level, Monster mon, Point point, bool isLeft) { hpBar = new HpBar(); Id = id; Level = level; Avatar = mon; Avatar.UpgradeToLevel(level); Position = point; IsLeft = isLeft; Action = 0; roundPast = 0; SkillManager = new SkillManager(this); AttackType = (int)CardElements.None; CanAttack = true; BuffManager = new BuffManager(this); aiController = new MonsterAi(this); LiveMonsterToolTip = new LiveMonsterToolTip(this); SetBasicData(); Life = Avatar.Hp; MonsterCoverBox = new MonsterCoverBox(this); }