Esempio n. 1
0
        public override void LoadContent()
        {
            base.LoadContent();
            tex2DTexture = GSM.Instance.Game.Content.Load<Texture2D>("Art/AISprite");
            recSpritePos = 	new Rectangle((int)(vec2Position.X),
                                          (int)(vec2Position.Y),
                                          tex2DTexture.Width,
                                          tex2DTexture.Height);
            sm = new SM(this, new Bombing());
            strObjectiveName = "Bomb Drop";
Esempio n. 2
0
 public override void LoadContent()
 {
     base.LoadContent();
     tex2DTexture = GSM.Instance.Game.Content.Load<Texture2D>("Art/playah");
     recSpritePos = 	new Rectangle((int)(vec2Position.X),
                                   (int)(vec2Position.Y),
                                   tex2DTexture.Width,
                                   tex2DTexture.Height);
     sm = new SM(this, new SeekState());
 }
Esempio n. 3
0
 public virtual void EnterState(SM a_FSM)
 {
     machine = a_FSM;
 }
Esempio n. 4
0
        public override void EnterState(SM a_FSM)
        {
            base.EnterState (a_FSM);
            machine.controller.Vec2Target = randomDest;