Ejemplo n.º 1
0
    public override LayerZeroStatus ResetButPreserve()
    {
        KNGCabinetStatus newStat = new KNGCabinetStatus();

        newStat.CumulativeScore = this.CumulativeScore;
        newStat.HighScore       = this.HighScore;
        return(newStat);
    }
Ejemplo n.º 2
0
    public override void EndGame()
    {
        IsPlaying = false;

        // calculate new data
        BigInteger       tickets   = score; // decide how many tickets to give
        KNGCabinetStatus kngStatus = arcadeStatus.KNGStatus;

        kngStatus.CumulativeScore += score;
        kngStatus.HighScore        = BigInteger.Max(kngStatus.HighScore, score);
        kngStatus.Tickets         += tickets;

        // update popup
        popUpText.text = "Your Score: " + score
                         + "\nCumulative Score: " + GameOperations.BigIntToString(kngStatus.CumulativeScore)
                         + "\nTicket Count: " + GameOperations.BigIntToString(kngStatus.Tickets);
        gainText.text = "(+" + GameOperations.BigIntToString(tickets) + ")";
        popUp.SetActive(true);

        // write to file
        base.EndGame();
    }
Ejemplo n.º 3
0
    public void ResetButPreserve()
    {
        statuses = new List <LayerZeroStatus>();

        // PRIZE STATUS MUST BE FIRST IN THE LIST
        prizeStatus = (PrizeStatus)prizeStatus.ResetButPreserve();
        statuses.Add(prizeStatus);

        // OTHER STATUSES
        debugStatus = (DebugCabinetStatus)debugStatus.ResetButPreserve();
        statuses.Add(debugStatus);

        qmgStatus = (QMGCabinetStatus)qmgStatus.ResetButPreserve();
        statuses.Add(qmgStatus);

        kngStatus = (KNGCabinetStatus)kngStatus.ResetButPreserve();
        statuses.Add(kngStatus);

        brdStatus = (BRDCabinetStatus)brdStatus.ResetButPreserve();
        statuses.Add(brdStatus);

        snkStatus = (SNKCabinetStatus)snkStatus.ResetButPreserve();
        statuses.Add(snkStatus);
    }
Ejemplo n.º 4
0
    public ArcadeStatus()
    {
        statuses = new List <LayerZeroStatus>();

        // PRIZE STATUS MUST BE FIRST IN THE LIST
        prizeStatus = new PrizeStatus();
        statuses.Add(prizeStatus);

        // OTHER STATUSES
        debugStatus = new DebugCabinetStatus();
        statuses.Add(debugStatus);

        qmgStatus = new QMGCabinetStatus();
        statuses.Add(qmgStatus);

        kngStatus = new KNGCabinetStatus();
        statuses.Add(kngStatus);

        brdStatus = new BRDCabinetStatus();
        statuses.Add(brdStatus);

        snkStatus = new SNKCabinetStatus();
        statuses.Add(snkStatus);
    }