private void Init() { Energy = new Mana(300); Health = new Health(1000); DrawBehavior = new TopDownRotationDrawBehavior(this); Level = 1; Experience = new NormalExperience(); Inertia = new DecimalPoint(0.5, 0.5); Acceleration = 5; IsPhysicalObject = true; Paralax = Paralax.Middleground; SpellHandler = new SpellHandler(GameWorld, this); AttackMap = new Dictionary <ActionSlot, Func <Spell> >(); ExperienceWhenKilled = 300; Loot = new Loot(); Loot.Items.Add(new HealthPowerUp(Location, GameWorld)); Experience.LevelUp += Experience_LevelUp; Killed += Character_Killed; }
private void Init() { Energy = new Mana(300); Health = new Health(1000); DrawBehavior = new TopDownRotationDrawBehavior(this); Level = 1; Experience = new NormalExperience(); Inertia = new DecimalPoint(0.5, 0.5); Acceleration = 5; IsPhysicalObject = true; Paralax = Paralax.Middleground; SpellHandler = new SpellHandler(GameWorld, this); AttackMap = new Dictionary<ActionSlot, Func<Spell>>(); ExperienceWhenKilled = 300; Loot = new Loot(); Loot.Items.Add(new HealthPowerUp(Location, GameWorld)); Experience.LevelUp += Experience_LevelUp; Killed += Character_Killed; }