예제 #1
0
 public void update() {
   if (bLoading) {
     if (bLoadingScreenPainted && !bGameInitialised) {
       bGameInitialised = true;
       initialiseGame();
     }
     int timeSpentInGame = (int) ((J3DTimer.getValue() - nLoadScreenStartet) / 1000000000L);
     // Loadimage Change?
     int timeSinceLastChange = (int) ((J3DTimer.getValue() - nLastLoadScreenChange) / 1000000000L);
     if (timeSinceLastChange > nLoadScreenChangeEvery) {
       if (nShowLoadPoints == 3) {
         nShowLoadPoints = 1;
       } else {
         nShowLoadPoints++;
       }
       nLastLoadScreenChange = J3DTimer.getValue();
     }
     // Minimum anzeigezeit verstrichen?
     if (timeSpentInGame > nMinLoadScreenTime) {
       // Spiel Initialisiert?
       if (((GamePlug) o).Initialised()) {
         bLoading = false;
       }
     }
   } else {
     // Beenden?
     if (((GamePlug) o).isPlugExiting()) {
       ExitAndMainMenue();
     } else {
       ((GamePlug) o).update();
     }
   }
 }
예제 #2
0
  public CgCardDeck(
      CardPanel CP,
      CardGames CG,
      String[] szGame,
      BufferedImage Loading,
      BufferedImage Point,
      BufferedImage Background) {

    bLoading = true;
    bGameInitialised = false;
    bLoadingScreenPainted = false;
    nLoadScreenStartet = J3DTimer.getValue();
    nLastLoadScreenChange = J3DTimer.getValue();
    biLoading = Loading;
    biLoadPoint = Point;
    biBackground = Background;
    pCP = CP;
    pCG = CG;
    sGameClassName = szGame[3];
  }