public AttackTypeSummary(AttackCollection owner, string name, string type)
		{
			this.owner = owner;
			Name = name;
			DamageType = type;
			Hits = new AttackCollection();
		}
Пример #2
0
        // TODO: Should weapons be swappable? (would require that owner be changeable)
        protected Weapon(string attackFile, T owner) : base(EntityGroups.Weapon)
        {
            Debug.Assert(owner != null, "Weapons must have a non-null owner.");

            Owner   = owner;
            attacks = new AttackCollection <T>(attackFile, owner);
        }
Пример #3
0
 private void LoadData()
 {
     AttackCollection.ReadObjects(Agent.GeneralConfiguration.TempFile);
     ArmCollection.ReadObjects(Agent.GeneralConfiguration.TempFile);
     FastDrawCollection.ReadObjects(Agent.GeneralConfiguration.TempFile);
     SpellCollection.ReadObjects(Agent.GeneralConfiguration.TempFile);
     SummonCollection.ReadObjects(Agent.GeneralConfiguration.TempFile);
     EnemyCollection.ReadObjects(Agent.GeneralConfiguration.TempFile);
     ItemCollection.ReadObjects(Agent.GeneralConfiguration.TempFile);
     AreaCollection.ReadObjects(Agent.GeneralConfiguration.TempFile);
     AreaCollection.SetAreaNames();
 }
Пример #4
0
 public Tentacle(OctopusBoss parent) : base(EntityGroups.Boss)
 {
     Parent  = parent;
     attacks = new AttackCollection <Tentacle>("TentacleAttacks.json", this);
 }