BusChangeEvent.java

package com.vikingz.unitycoon.events.eventfiles;

import com.vikingz.unitycoon.global.GameGlobals;

/**
 * This is a new class which creates a bus change event object.
 * It was implemented to complete UR_EVENTS.
 */
public class BusChangeEvent extends Event {

    /**
     * A negative event where the bus routes change, and student satisfaction falls
     */
    public BusChangeEvent() {

        setMessage("The bus routes have changed!\n\nPeople are confused, and are pretty upset...");

        setLeftRun(() -> GameGlobals.SATISFACTION.applyPenalty(10));

        GameGlobals.EVENT.incrementNegativeEvent();
    }
}