예제 #1
0
 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;
 }
예제 #2
0
        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;
        }
예제 #3
0
 public Soilder(int id, ArmyDefinition army, NodeBase position, PlayerBase owner) :
     base(id, army, position, owner)
 {
 }