Esempio n. 1
0
 public Personnage(string name, bool player, int argent, Inventory inventory, Model model)
 {
     this.name = name;
     this.player = player;
     this.argent = argent;
     this.model = model;
     this.inventory = inventory;
     init();
     Load("01");
 }
Esempio n. 2
0
        public Infobulle(List<string> linfos ,Texture2D back , Vector2 position , InventoryStockableInterface inv , Inventory.ObjQte cible)
            : base("",Tools.Quick.dicoFont[Tools.TypeFont.Texte],position,inv.infobulleunshow)
        {
            pos = position;
            info = linfos;
            parent = inv;
            backinfo = back;
            this.cible = cible;
             t = "";
            foreach (string s in info)
            {
                t += s + Environment.NewLine;
            }
            this.area = new Rectangle((int)pos.X, (int)pos.Y, (int)font.MeasureString(t).X, (int)font.MeasureString(t).Y);

            this.color = Color.White;
        }