예제 #1
0
파일: potion.cs 프로젝트: tchiiikun/Templar
 public potion(Texture2D texture, GamePlayer player, gamemain main, NPC npc, string name)
     : base(texture, player, npc.Position, main)
 {
     Main = main;
     Player = player;
     Texture = texture;
     Hitbox_potion = new Rectangle((int)Position.X, (int)Position.Y, Texture.Bounds.Width, Texture.Bounds.Y);
     Name = name;
 }
예제 #2
0
파일: potion.cs 프로젝트: kylox/Templar
 public potion(Texture2D texture, NPC npc, string name)
     : base(/*texture,*/ npc.Position)
 {
     Texture = texture;
     Hitbox_potion = new Rectangle((int)Position.X, (int)Position.Y, 32, 32);
     Name = name;
     usable = true;
     switch (name)
     {
         case "VIE":
             utilité = "restore 10 pv au personnage";
             break;
         case "MANA":
             utilité = "restore 10 point de mana au personnage";
             break;
     }
 }