Beispiel #1
0
 public void DispatchNewWarParty()
 {
     WarPartyTimer = new DateTimer(PlayState.Time.CurrentDate, DistanceToCapital)
     {
         TriggerOnce = true
     };
 }
Beispiel #2
0
 public Expidition(DateTime date)
 {
     ExpiditionState = State.Arriving;
     ShouldRemove    = false;
     Creatures       = new List <CreatureAI>();
     DeathTimer      = new DateTimer(date, new TimeSpan(1, 12, 0, 0));
 }
Beispiel #3
0
        public Fairy(ComponentManager manager, Vector3 position) :
            base(manager, new CreatureStats("Fairy", "Fairy", 0), manager.World.Factions.Factions["Player"], "Fairy")
        {
            Physics = new Physics(manager, "Fairy", Matrix.CreateTranslation(position),
                                  new Vector3(0.5f, 0.5f, 0.5f), new Vector3(0.0f, -0.25f, 0.0f), 1.0f, 1.0f, 0.999f, 0.999f, new Vector3(0, -10, 0));

            Physics.AddChild(this);

            ParticleTimer = new Timer(0.2f, false);
            DeathTimer    = new DateTimer(manager.World.Time.CurrentDate, new TimeSpan(1, 0, 0, 0, 0));

            Physics.Orientation = Physics.OrientMode.RotateY;

            CreateCosmeticChildren(Manager);

            Physics.AddChild(new EnemySensor(Manager, "EnemySensor", Matrix.Identity, new Vector3(10, 5, 10), Vector3.Zero));

            Physics.AddChild(new FairyAI(Manager, "Fairy AI", Sensor));

            Physics.AddChild(new Inventory(Manager, "Inventory", Physics.BoundingBox.Extents(), Physics.LocalBoundingBoxOffset));

            Physics.Tags.Add("Dwarf");

            Stats.FullName = TextGenerator.GenerateRandom("$firstname");

            Stats.CanEat = false;
            AI.Movement.CanClimbWalls = true;
            AI.Movement.CanFly        = true;
            AI.Movement.SetCost(MoveType.Fly, 1.0f);
            AI.Movement.SetSpeed(MoveType.Fly, 1.0f);
            AI.Movement.SetCost(MoveType.ClimbWalls, 1.0f);
            AI.Movement.SetSpeed(MoveType.ClimbWalls, 1.0f);
            AI.Movement.SetCan(MoveType.Dig, true);
        }
Beispiel #4
0
 public void DispatchNewWarParty(DateTime currentDate)
 {
     WarPartyTimer = new DateTimer(currentDate, DistanceToCapital)
     {
         TriggerOnce = true
     };
 }
Beispiel #5
0
        public Fairy(ComponentManager manager, string allies, Vector3 position) :
            base(manager, new CreatureStats(new FairyClass(), 0), "Player", manager.World.PlanService, manager.World.Factions.Factions[allies], "Fairy")
        {
            Physics = new Physics(manager, "Fairy", Matrix.CreateTranslation(position),
                                  new Vector3(0.5f, 0.5f, 0.5f), new Vector3(0.0f, -0.25f, 0.0f), 1.0f, 1.0f, 0.999f, 0.999f, new Vector3(0, -10, 0));

            Physics.AddChild(this);

            HasMeat       = false;
            HasBones      = false;
            ParticleTimer = new Timer(0.2f, false);
            DeathTimer    = new DateTimer(manager.World.Time.CurrentDate, new TimeSpan(1, 0, 0, 0, 0));
            Initialize(new FairyClass());
        }
Beispiel #6
0
            public Politics()
            {
                WasAtWar      = false;
                HasMet        = false;
                WarPartyTimer = new DateTimer(PlayState.Time.CurrentDate, DistanceToCapital)
                {
                    TriggerOnce = true
                };

                TradePartyTimer = new DateTimer(PlayState.Time.CurrentDate, DistanceToCapital)
                {
                    TriggerOnce = true
                };
            }
Beispiel #7
0
            public Politics(DateTime currentDate, TimeSpan distanceToCapital)
            {
                DistanceToCapital = distanceToCapital;
                WasAtWar          = false;
                HasMet            = false;
                WarPartyTimer     = new DateTimer(currentDate, DistanceToCapital)
                {
                    TriggerOnce = true
                };

                TradePartyTimer = new DateTimer(currentDate, DistanceToCapital)
                {
                    TriggerOnce = true
                };
            }
Beispiel #8
0
 public WarParty(DateTime date) : base(date)
 {
     PrepareTimer         = new DateTimer(date, new TimeSpan(0, 4, 0, 0, 0));
     this.ExpiditionState = Expedition.State.Arriving;
 }
Beispiel #9
0
 public void StartTrading(DateTime date)
 {
     WaitForTradeTimer = new DateTimer(date, new TimeSpan(0, 2, 0, 0, 0));
 }
Beispiel #10
0
 public TradeEnvoy(DateTime date) : base(date)
 {
     WaitForTradeTimer = new DateTimer(date, new TimeSpan(0, 2, 0, 0, 0));
 }
Beispiel #11
0
 public Expedition(DateTime Date)
 {
     DeathTimer = new DateTimer(Date, new TimeSpan(1, 12, 0, 0));
 }