示例#1
0
 public Hider(Dictionary <string, Animation.Animation> animations, BaseKeys keys, Vector2 position,
              Rectangle?sourceRectangle, Color color,
              float rotation, Vector2 origin, Vector2 scale,
              SpriteEffects effects, float layerDepth) :
     base(animations.First().Value, position,
          sourceRectangle, color,
          rotation, origin, scale,
          effects, layerDepth)
 {
     this.animations       = animations;
     this.keys             = keys;
     MainGame.UpdateEvent += update;
 }
示例#2
0
 public Seeker(Dictionary <string, Animation.Animation> animations, NeuralNetwork.NeuralNetwork Neuralnetwork, BaseKeys keys, Vector2 position,
               Rectangle?sourceRectangle, Color color,
               float rotation, Vector2 origin, Vector2 scale,
               SpriteEffects effects, float layerDepth) :
     base(animations.First().Value, position,
          sourceRectangle, color,
          rotation, origin, scale,
          effects, layerDepth)
 {
     this.animations       = animations;
     this.keys             = keys;
     LifeTime              = 1;
     Score                 = 0;
     this.Neuralnetwork    = Neuralnetwork;
     Energy                = 501;
     MainGame.UpdateEvent += update;
 }