package com.lucasdnd.ags.gameplay.actions; import com.lucasdnd.ags.gameplay.Customer; import com.lucasdnd.ags.gameplay.market.MarketConsole; /** * Describes the Action of playing a game inside the store * @author tulio * */ public class PlayGameAction extends Action { protected MarketConsole referringMarketConsole; /** * Creates a new Action, sending the Console that Character wants to play in the store * @param referringMarketGame */ public PlayGameAction(MarketConsole referringMarketConsole) { // Reference to the Market Console it wants to play this.referringMarketConsole = referringMarketConsole; // The Character State related to playing a game state = Customer.WANTS_TO_PLAY; // The action ratings actionRating = 0; positiveActionPoints = 5; negativeActionPoints = -3; // Creates the speeches neutralTalks = new String[1]; neutralTalks[0] = "What am I playing today?"; positiveTalks = new String[2]; positiveTalks[0] = "Let's play some " + referringMarketConsole.getName(); positiveTalks[1] = "One hour of " + referringMarketConsole.getName(); negativeTalks = new String[2]; negativeTalks[0] = "Too bad they don't have a " + referringMarketConsole.getName(); negativeTalks[1] = "Oh, they don't have a " + referringMarketConsole.getName(); } public MarketConsole getReferringMarketConsole() { return referringMarketConsole; } public void setReferringMarketGame(MarketConsole referringMarketConsole) { this.referringMarketConsole = referringMarketConsole; } }