// Path: core/src/com/metalrain/stocksimulator/textClient/ITextClientSection.java
// public interface ITextClientSection {
//     public String getName();
//     public String getDescription();
//     public void invoke(String command, Scanner scanner);
// }
// 
// Path: core/src/com/metalrain/stocksimulator/textClient/TextClient.java
// public class TextClient {
// 
//     private final GameState state;
//     public String savedGameJson;
// 
//     private final List<ITextClientSection> sectionList = Arrays.asList(
//             new HelpSection(this),
//             new ShowMarketSection(this),
//             new MarketHistorySection(this),
//             new PlayerSection(this),
//             new MakePurchaseSection(this),
//             new MakeSaleSection(this),
//             new SerializeGameSection(this),
//             new LoadGameSection(this)
//     );
// 
//     public TextClient(GameState state) {
//         this.state = state;
// 
//     }
// 
//     public void start() {
//         Scanner scanner = new Scanner(System.in);
//         String nextLine = "";
// 
//         do {
//             System.out.print("Enter a command (help): ");
//             try {
//                 nextLine = scanner.nextLine();
//             } catch (NoSuchElementException e) {
//                 System.out.println("Goodbye");
//                 return;
//             }
//             for (ITextClientSection section:sectionList) {
//                 if (section.getName().equalsIgnoreCase(nextLine)){
//                     System.out.println("\n---- Invoking " + section.getName() + " ----");
//                     section.invoke(nextLine, scanner);
//                     System.out.println();
//                 }
//             }
//         } while (!nextLine.equalsIgnoreCase("quit"));
// 
//     }
// 
//     public List<ITextClientSection> getSectionList() {
//         return sectionList;
// 
//     }
// 
//     public GameState getState() {
//         return state;
//     }
// }


import com.metalrain.stocksimulator.textClient.ITextClientSection;
import com.metalrain.stocksimulator.textClient.TextClient;
import java.util.Scanner;
package com.metalrain.stocksimulator.textClient.sections;



/**
 * Created by Adam Hammer on 6/22/2015.
 */
public class PlayerSection implements ITextClientSection{

    private final TextClient client;

// Path: core/src/com/metalrain/stocksimulator/textClient/ITextClientSection.java
// public interface ITextClientSection {
//     public String getName();
//     public String getDescription();
//     public void invoke(String command, Scanner scanner);
// }
// 
// Path: core/src/com/metalrain/stocksimulator/textClient/TextClient.java
// public class TextClient {
// 
//     private final GameState state;
//     public String savedGameJson;
// 
//     private final List<ITextClientSection> sectionList = Arrays.asList(
//             new HelpSection(this),
//             new ShowMarketSection(this),
//             new MarketHistorySection(this),
//             new PlayerSection(this),
//             new MakePurchaseSection(this),
//             new MakeSaleSection(this),
//             new SerializeGameSection(this),
//             new LoadGameSection(this)
//     );
// 
//     public TextClient(GameState state) {
//         this.state = state;
// 
//     }
// 
//     public void start() {
//         Scanner scanner = new Scanner(System.in);
//         String nextLine = "";
// 
//         do {
//             System.out.print("Enter a command (help): ");
//             try {
//                 nextLine = scanner.nextLine();
//             } catch (NoSuchElementException e) {
//                 System.out.println("Goodbye");
//                 return;
//             }
//             for (ITextClientSection section:sectionList) {
//                 if (section.getName().equalsIgnoreCase(nextLine)){
//                     System.out.println("\n---- Invoking " + section.getName() + " ----");
//                     section.invoke(nextLine, scanner);
//                     System.out.println();
//                 }
//             }
//         } while (!nextLine.equalsIgnoreCase("quit"));
// 
//     }
// 
//     public List<ITextClientSection> getSectionList() {
//         return sectionList;
// 
//     }
// 
//     public GameState getState() {
//         return state;
//     }
// }


// Path: core/src/com/metalrain/stocksimulator/textClient/sections/PlayerSection.java
import com.metalrain.stocksimulator.textClient.ITextClientSection;
import com.metalrain.stocksimulator.textClient.TextClient;
import java.util.Scanner;

package com.metalrain.stocksimulator.textClient.sections;



/**
 * Created by Adam Hammer on 6/22/2015.
 */
public class PlayerSection implements ITextClientSection{

    private final TextClient client;

    public PlayerSection(TextClient textClient) {