public BattleButtonContext(GameSession session, BattleInstance battle) : base(session) { Battle = battle; ButtonContent1 = "Attack!"; ButtonContent2 = "Guard"; ButtonContent3 = "Move East"; ButtonContent4 = "Move West"; ButtonContent5 = "Look Around"; ButtonContent6 = "Equipment"; ButtonContent7 = "Stats"; ButtonContent8 = "Armor?"; ButtonContent9 = "Weapon?"; ButtonContent10 = "Fight!"; ButtonEnabled1 = true; ButtonEnabled2 = true; ButtonEnabled3 = false; ButtonEnabled4 = false; ButtonEnabled5 = false; ButtonEnabled6 = true; ButtonEnabled7 = true; ButtonEnabled8 = false; ButtonEnabled9 = false; ButtonEnabled10 = false; }
static void Main(string[] args) { ConsoleCyan("********DIABOLO-CORP********"); ConsoleCyan($"It was another long day at the office. You finally get home, and check your personal email(since your so called office friends are always looking over your screens, making sure everything is nice and productive for your Boss).\n\n A name you hadn't seen in weeks appears in your emails. The recruiter for the interview you had to call out for...?\n\n YOU GOT THE JOB! \n\nCongratulations! You can't wait to accept this and jump out of this gig before it finally wears you down. You hurridly write your two weeks and print it out. \n\n Tomorrow is a big day. \n\nPRESS ENTER TO START"); Hero player = PlayerSetup(); ConsoleKey key = Console.ReadKey(true).Key; while (key != ConsoleKey.Enter) { key = Console.ReadKey(true).Key; } Console.WriteLine("BEGIN YOUR ADVENTURE HERE!!!"); //write a method that will create other team mates. // make a game(while) loop to run your game //not sure how to do this yet - Tom ConsoleCyan("Your direct superdvisor eyes you in horror as you tell her that you're going to accept a new position. \n\n 'Are you ABSOLUTELY SURE you want to do this? We've taken such good care of you here!"); string choice1 = "0"; while (choice1 != "1" && choice1 != "2") { Console.WriteLine("Have they really taken good care of you? You've spent a good amount of nights in a sleeping bag in this office. The coffee machine is always on the fritz, and you've given up on bringing lunch since it always 'disappears.' \n\n What do you want to do?"); Console.WriteLine("How do you answer? 1 for Yes and 2 for No"); choice1 = Console.ReadLine(); } switch (choice1) { case ("1"): ConsoleRed("'You must be crazy to even THINK of leaving a job like this.'\n\n The passive aggression coming from her mouth burns in your mind, as the two of you begin to furiously debate."); EvilLawyers Stacy = new EvilLawyers("Stacy"); BattleInstance.Battle(player, Stacy); player.Health = player.MaxHealth; break; case ("2"): ConsoleCyan("'I Knew you would see it my way. We really, really, really care for you here and would be lost without you!'\n\n You never leave this company, never retiring as you work under them for the rest of your days."); player.Health = 0; break; } }
public override void ButtonBehavior10() { if (Session.CurrentLocation.Characters.Count > 0) { while (Session.CurrentLocation.Characters.Count > 0) { BattleInstance battle = new BattleInstance(Session, (PlayerCharacter)Session.CurrentPlayer, (BaseMonster)Session.CurrentLocation.Characters[Session.CurrentLocation.Characters.Count - 1]); Session.CurrentLocation.Characters.RemoveAt(Session.CurrentLocation.Characters.Count - 1); } } else { Session.AddToDisplayText("\nThere is nobody to fight!"); } }
// Called when the node enters the scene tree for the first time. public override void _Ready() { _player = new Player("Test Player", WeaponType.Untyped, new List <string>() { "Default1", "Default2", "Default3", "Default4", "Default5" }); List <Enemy> enemies = Enemy_DataAccess.GetEnemies(); Console.WriteLine("Enemies: "); foreach (Enemy e in enemies) { Console.WriteLine($"\t{e.Name}"); } _battle = new BattleInstance(_player, enemies); _playerLabel = GetNode <Label>("../PlayerName_Label"); _opponentLabel = GetNode <Label>("../OpponentName_Label"); _battleLabel = GetNode <Label>("../BattleResult_Label"); }
public override void Update(BattleInstance bi, GameTime gt) { }
public abstract void Update(BattleInstance bi, GameTime gt);