private void generateItemsLines() { items[0] = new AtributeTextLine(3, 3, 20, "0", "Atack"); items[1] = new AtributeTextLine(3, 4, 20, "0", "Defense"); items[2] = new AtributeTextLine(3, 5, 20, "0", "Speed"); items[3] = new AtributeTextLine(3, 6, 20, "0", "Hp"); }
public StatsWindow(Hero hero) : base(1, 1, 100, 27, '~') { items = new AtributeTextLine[4]; generateItemsLines(); keyInfoHolder1 = new TextLine(102, 2, 16, "[Esc] close", TextAligment.Left); keyInfoHolder2 = new TextLine(102, 3, 16, "", TextAligment.Left); keyInfoHolder2 = new TextLine(102, 4, 16, "", TextAligment.Left); keyInfoHolder3 = new TextLine(102, 5, 16, "", TextAligment.Left); heroName = new TextLine(53, 3, 20, hero.Name, TextAligment.Left); //todo fill from hero exp = new AtributeTextLine(53, 5, 20, atribute: "Exp: ", data: "0"); Level = new AtributeTextLine(53, 6, 20, atribute: "Level: ", data: "0"); points = new AtributeTextLine(53, 7, 20, atribute: "Points: ", data: "Empty"); }
public GameWindow() : base(0, 0, Console.WindowWidth, Console.WindowHeight, ' ') { gameField = new GameField(1, 1, 100, 27); health = new AtributeTextLine(3, 28, 11, "20", "Health:"); defense = new AtributeTextLine(15, 28, 11, "0", "Defense:"); speed = new AtributeTextLine(27, 28, 11, "15", "Speed:"); atack = new AtributeTextLine(40, 28, 11, "3", "Atack:"); gold = new AtributeTextLine(53, 28, 11, "0", "Gold:"); dungLvl = new AtributeTextLine(102, 28, 15, "0", "DungeonLvl: "); infoHolder = new TextLine(1, 0, 100, "", TextAligment.Left); errorHolder = new TextLine(102, 1, 15, "", TextAligment.Left); keyInfoHolder1 = new TextLine(102, 2, 15, "[I] inventory", TextAligment.Left); keyInfoHolder4 = new TextLine(102, 3, 15, "[C] Stats", TextAligment.Left); keyInfoHolder2 = new TextLine(102, 4, 15, "[esc] Menu", TextAligment.Left); keyInfoHolder3 = new TextLine(102, 5, 15, "", TextAligment.Left); LastEvents = new UpdatableTextBlock(102, 21, 15, 5); }
public InventoryWindow(Hero hero) : base(1, 1, 100, 27, '~') { items = new TextLine[hero.Inventory.Items.Length]; generateItemsLines(); keyInfoHolder1 = new TextLine(102, 2, 16, "[Esc] close", TextAligment.Left); keyInfoHolder2 = new TextLine(102, 3, 16, "", TextAligment.Left); keyInfoHolder2 = new TextLine(102, 4, 16, "", TextAligment.Left); keyInfoHolder3 = new TextLine(102, 5, 16, "", TextAligment.Left); heroName = new TextLine(53, 3, 20, hero.Name, TextAligment.Left); //todo fill from hero helmet = new AtributeTextLine(53, 5, 20, atribute: "Helmet: ", data: "Empty"); armor = new AtributeTextLine(53, 6, 20, atribute: "Armor: ", data: "Empty"); panties = new AtributeTextLine(53, 7, 20, atribute: "Panties: ", data: "Empty"); boots = new AtributeTextLine(53, 8, 20, atribute: "Boots: ", data: "Empty"); gun = new AtributeTextLine(53, 10, 20, atribute: "Gun: ", data: "Empty"); defense = new AtributeTextLine(53, 12, 20, atribute: "Defense: ", data: hero.Def.ToString()); atack = new AtributeTextLine(53, 13, 20, atribute: "Atack: ", data: hero.Damage.ToString()); }