public RPSLSController(GameController c, int amountOfPlayers) { int playerCount = 0; playerArray = new HandController[amountOfPlayers]; for (int i = 0; i < amountOfPlayers; i++) { if (i > 0) // Meerdere nps's { playerArray[i] = new HandController(true, this); } else // Enkel 1 player { playerArray[i] = new HandController(false, this); } } //player = new HandController(false, this); //playerArray[playerCount] = player; //playerCount++; //npc = new HandController(true, this); //playerArray[playerCount] = npc; //playerCount++; model = new RPSLSModel(amountOfPlayers); view = new RPSLSView(this); gameController = c; StartTurn(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); GameController game = new GameController(); Application.Run(game.GetView()); }
public ScoreBoardController( GameController c, int pointsRequiredForSetParameter) { gameController = c; view = new ScoreBoardView(this); model = new ScoreBoardModel(this, pointsRequiredForSetParameter); }
public GameView(GameController c) { InitializeComponent(); controller = c; }