コード例 #1
0
        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();
        }
コード例 #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            GameController game = new GameController();

            Application.Run(game.GetView());
        }
コード例 #3
0
 public ScoreBoardController( GameController c, int pointsRequiredForSetParameter)
 {
     gameController = c;
     view = new ScoreBoardView(this);
     model = new ScoreBoardModel(this, pointsRequiredForSetParameter);
 }
コード例 #4
0
        public GameView(GameController c)
        {
            InitializeComponent();

            controller = c;
        }