/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { root = new Virtual_root_Console(this, 100, 60); stateManager = new StateManager(this, root); base.Initialize(); }
public ViewActorsMenu(StateManager manager, Virtual_root_Console root, IngameMenu ingameMenu) : base(manager, root) { this.ingameMenu = ingameMenu; menu = new VirtualConsole(30, 20); menu.X_Offset = 10; consoles.Add(menu); root.Print(menu, 1, 1, "Creatures"); root.Print(menu, 1, 2, "---------"); }
public IngameMenu(StateManager manager, Virtual_root_Console root, PlayState playState) : base(manager, root) { this.playState = playState; menu = new VirtualConsole(20, 10); root.Print(menu, 0, 1, "Ingame menu"); root.Print(menu, 0, 2, "------------"); root.Print(menu, 0, 3, " A - View units"); consoles.Add(menu); }
public StateManager(Game game, Virtual_root_Console root) { this.game = game; this.root = root; stack = new Stack <State>(); InitializeStates(); }
public ViewDetailActorMenu(StateManager manager, Virtual_root_Console root, Creature creature) : base(manager, root) { this.creature = creature; menu = new VirtualConsole(60, 60); details = new VirtualConsole(60, 30); details.X_Offset = menu.screen_width; root.SetBackgroundColor(details, VAColor.Blue); consoles.Add(menu); consoles.Add(details); }
public PlayState(StateManager manager, Virtual_root_Console root, int width, int height) : base(manager, root) { screen = root.AddConsole(width, height); screen.X_Offset = 10; consoles.Add(screen); world = new WorldManager(width, height); creatureManager = new CreatureManager(world); }
public State(StateManager manager, Virtual_root_Console root) { this.manager = manager; this.root = root; consoles = new List <VirtualConsole>(); }