Esempio n. 1
0
        protected override void OnInitialize()
        {
            base.OnInitialize();
            EquipmentComponent = Parent.GetComponent <EquipmentComponent>();

            _IsDead       = false;
            CurrentHealth = MaxHealth;
            CurrentMana   = MaxMana;
        }
Esempio n. 2
0
 protected override void OnInitialize()
 {
     base.OnInitialize();
     AC             = this.GetDependency <AttributesComponent>();
     MC             = this.GetDependency <MovementComponent>();
     CC             = this.GetDependency <CombatComponent>();
     PC             = this.GetDependency <PhysicsComponent>();
     SC             = this.GetDependency <SpriteComponent>();
     EC             = this.GetDependency <EquipmentComponent>();
     ScoreComponent = this.GetDependency <ScoreComponent>();
     _IsAttacking   = false;
     if (!AC.IsDiedRegistered)
     {
         AC.Died += AC_Died;
     }
 }
Esempio n. 3
0
 protected override void OnInitialize()
 {
     base.OnInitialize();
     EquipmentComponent = Parent.GetComponent<EquipmentComponent>();
     AttributesComponent = this.GetDependency<AttributesComponent>();
     MovementComponent = this.GetDependency<MovementComponent>();
     SpriteComponent = this.GetDependency<SpriteComponent>();
     PhysicsSystem = Parent.Scene.GetSystem<PhysicsSystem>();
     PhysicsComponent = Parent.GetComponent<PhysicsComponent>();
     CombatPropertiesComponent = this.GetDependency<CombatPropertiesComponent>();
     _ShieldAnimation = new ShieldAnimation(this.Parent, "Sprites/Misc/Shield_Yellow2");
 }
 protected override void OnInitialize()
 {
     base.OnInitialize();
     EquipmentComponent = Parent.GetComponent<EquipmentComponent>();
 }
Esempio n. 5
0
 private void LoadDependencies()
 {
     this.AC = Player.Character.GetComponent<AttributesComponent>();
     this.EC = Player.Character.GetComponent<EquipmentComponent>();
     this.PCC = Player.Character.GetComponent<PlayerControlComponent>();
     this.SC = Player.Character.GetComponent<ScoreComponent>();
 }
Esempio n. 6
0
        protected override void OnInitialize()
        {
            base.OnInitialize();
            EquipmentComponent = Parent.GetComponent<EquipmentComponent>();

            _IsDead = false;
            CurrentHealth = MaxHealth;
            CurrentMana = MaxMana;
        }
Esempio n. 7
0
 protected override void OnInitialize()
 {
     base.OnInitialize();
     AC = this.GetDependency<AttributesComponent>();
     MC = this.GetDependency<MovementComponent>();
     CC = this.GetDependency<CombatComponent>();
     PC = this.GetDependency<PhysicsComponent>();
     SC = this.GetDependency<SpriteComponent>();
     EC = this.GetDependency<EquipmentComponent>();
     ScoreComponent = this.GetDependency<ScoreComponent>();
     _IsAttacking = false;
     if (!AC.IsDiedRegistered)
         AC.Died += AC_Died;
 }
 protected override void OnInitialize()
 {
     base.OnInitialize();
     EquipmentComponent = Parent.GetComponent <EquipmentComponent>();
 }