protected ArmyBase(int id, ArmyDefinition army,NodeBase position, PlayerBase owner) { Id = id; Owner = owner; Position = position; Name = army.DefaultName; Attack = army.DefaultAttack; Move = army.DefaultMove; Description = army.DefaultDescription; Definition = army; }
public static ArmyBase CreateArmy(ArmyDefinition armyDefinition, NodeBase position, PlayerBase owner) { ArmyBase army; army = ResourceManager.CurrentResouceManager.LoadedArmys[armyDefinition.EntityType].InvokeMember( null, System.Reflection.BindingFlags.CreateInstance, null, null, new object[] { index++, armyDefinition, position, owner } ) as ArmyBase; return army; }
public Soilder(int id, ArmyDefinition army, NodeBase position, PlayerBase owner) : base(id, army, position, owner) { }