Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PASTEBINnew paste
- Untitled
- A GUEST SEP 25TH, 2018 79 NEVER
- Upgrade to PRO!
- rawdownloadreport 1.70 KB
- package RPG;
- import java.util.ArrayList;
- import java.util.Scanner;
- public class Main {
- public static void objectCreator(int index){
- ArrayList<Character> load = new ArrayList<Character>();
- switch(index){
- case 1: Character warrior = new Warrior(0,0,0,0); // konstrukto todo
- load.add(warrior);
- break;
- }
- public void characterCreation(){
- int pick;
- Scanner scan = new Scanner;
- System.out.println("Pick your Character:"
- + "1.Warrior");
- pick = scan.nextInt();
- objectCreator(pick);
- }
- }
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in); // skaner wysypuje
- int input = 1;
- while (input != 3) {
- switch (input) {
- case 1:
- System.out.print("-----MENU----\n"
- + "Press a number + enter to proceed.\n"
- + "1. START\n"
- + "2. LOAD\n"
- + "3. EXIT\n");
- input = scanner.nextInt();
- break;
- case 2:
- System.out.print("case 2\n");
- characterCreation();
- input = 1;
- break;
- case 3:
- System.out.print("case 3\n");
- input = 1;
- break;
- case 4:
- System.out.print("case 4\n");
- input = 1;
- break;
- }
- }
- }
- }
- RAW Paste Data
- package RPG;
- import java.util.ArrayList;
- import java.util.Scanner;
- public class Main {
- public static void objectCreator(int index){
- ArrayList<Character> load = new ArrayList<Character>();
- switch(index){
- case 1: Character warrior = new Warrior(0,0,0,0); // konstrukto todo
- load.add(warrior);
- break;
- }
- public void characterCreation(){
- int pick;
- Scanner scan = new Scanner;
- System.out.println("Pick your Character:"
- + "1.Warrior");
- pick = scan.nextInt();
- objectCreator(pick);
- }
- }
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in); // skaner wysypuje
- int input = 1;
- while (input != 3) {
- switch (input) {
- case 1:
- System.out.print("-----MENU----\n"
- + "Press a number + enter to proceed.\n"
- + "1. START\n"
- + "2. LOAD\n"
- + "3. EXIT\n");
- input = scanner.nextInt();
- break;
- case 2:
- System.out.print("case 2\n");
- characterCreation();
- input = 1;
- break;
- case 3:
- System.out.print("case 3\n");
- input = 1;
- break;
- case 4:
- System.out.print("case 4\n");
- input = 1;
- break;
- }
- }
- }
- }
- We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
- IBM CLOUD PRIVATE FREE TRIAL: DEPLOY. MANAGE. SCALE YOUR APP.
- create new paste / dealsnew! / syntax languages / archive / faq / tools / night mode / api / scraping api / go
- privacy statement / cookies policy / terms of service / security disclosure / dmca / contact
- Dedicated Server Hosting by Steadfast
- Top
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement