コード例 #1
0
 public TarotAfricain()
 {
     graphics = new GraphicsDeviceManager(this);
     Content.RootDirectory              = "Content";
     graphics.PreferredBackBufferWidth  = WINDOWS_WIDTH;
     graphics.PreferredBackBufferHeight = WINDOWS_HEIGHT;
     eh             = new EventsHandler(this);
     generateEvents = new GenerateEvents();
 }
コード例 #2
0
 public void StartGame(GenerateEvents generateEvents, List <string> names, List <int> isIa, int nbCarte)
 {
     mesDelegate  = new List <Delegate>();
     events       = generateEvents;
     this.names   = names;
     this.isIa    = isIa;
     this.nbCarte = nbCarte;
     tarot        = new Thread(startGame);
     tarot.Start();
 }
コード例 #3
0
 public void Subscribe(GenerateEvents g)
 {
     g.OnTourChanged         += new GenerateEvents.ChangedTourEventHandler(OnTourChangedHandler);
     g.OnMancheChanged       += new GenerateEvents.ChangedMancheEventHandler(OnMancheChangedHandler);
     g.OnCarteJoueeChanged   += new GenerateEvents.ChangedCarteJoueeEventHandler(OnCarteJoueeChangedHandler);
     g.OnGameOver            += new GenerateEvents.GameOverEventHandler(OnGameOverHandler);
     g.OnMainChanged         += new GenerateEvents.ChangedMainEventHandler(OnMainChangedHandler);
     g.OnParisChanged        += new GenerateEvents.ChangedParisEventHandler(OnParisChangedHandler);
     g.OnPointsGameChanged   += new GenerateEvents.ChangedPointsEventHandler(OnPointGameChangedHandler);
     g.OnPointsMancheChanged += new GenerateEvents.ChangedPointsEventHandler(OnPointMancheChangedHandler);
     g.OnGagnantTour         += new GenerateEvents.ChangedGagnantTourEventHandler(OnGagnantTourHandler);
     g.OnGetCarteJouee       += new GenerateEvents.GetCarteJoueeJoueurEventHandler(OnGetCarteJoueeHandler);
     g.OnGetPari             += new GenerateEvents.GetPariEventHandler(OnGetPariHandler);
     g.OnMancheEnd           += new GenerateEvents.MancheEndEventHandler(OnMancheEndHandler);
 }