コード例 #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
ファイル: Seeker.cs プロジェクト: YuvalSarig/HideAndSeekAI
 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;
 }