Пример #1
0
 public Unit(Sprite2D sprite2D, int hp = 100, int mp = 100, int stm = 100) : base(sprite2D)
 {
     this.damage   = 200;
     this.hp       = hp;
     this.mp       = mp;
     this.stm      = stm;
     this.sprite2D = sprite2D;
 }
Пример #2
0
 public GameMenu(Sprite2D model, int numOfButtons) : base(model)
 {
     buttons = new List <GameButton>();
     for (int i = 0; i < numOfButtons; i++)
     {
         var tex = ResManager.Instance.Load("button\\bt1");
         var btn = new GameButton(new Sprite2D(tex, 20f, (tex[0].Height + 10f) * i, 0.9f));
         btn.Tag    = i;
         btn.Click += (object sender, GameButtonEventArgs e) =>
         {
             if (this.Click != null)
             {
                 this.Click(this, new GameMenuEventArgs(btn));
             }
         };
         buttons.Add(btn);
     }
 }
Пример #3
0
 public Effects(Sprite2D model) : base(model)
 {
 }
Пример #4
0
 public walkingMan(Sprite2D sprite) :
     base(sprite, 50, 50, 100)
 {
 }
Пример #5
0
 //Sprite2D sprite2D;
 public Map(Sprite2D sprite2D) : base(sprite2D)
 {
     //this.sprite2D = sprite2D;
 }
Пример #6
0
 public GameControl(Sprite2D model) : base(model)
 {
 }
Пример #7
0
 public GameVisibleEntity2D(Sprite2D model)
 {
     this._model = model;
 }
Пример #8
0
 public GameButton(Sprite2D model) : base(model)
 {
 }
Пример #9
0
 public Island(Sprite2D sprite2D) : base(sprite2D)
 {
 }