public class SpecialItemOfferCreator extends BlueprintOfferCreator
Modifier and Type | Field and Description |
---|---|
static int |
BASE_POINTS |
protected int |
numAccepted |
static java.lang.String |
PREFIX |
frequency
Constructor and Description |
---|
SpecialItemOfferCreator(float frequency) |
Modifier and Type | Method and Description |
---|---|
protected BaseHistorianOfferWithLocation |
createOffer(SectorEntityToken entity,
java.lang.String data) |
protected java.util.List<java.lang.Object> |
getAllSpecs() |
protected java.lang.String |
getAlreadyUsedIdFromOffer(HistorianData.HistorianOffer offer) |
java.lang.String |
getBlueprintIdFromOfferId(java.lang.String offerId) |
protected java.lang.String |
getIdForSpec(java.lang.Object spec) |
java.lang.String |
getOfferId(BaseHistorianOffer offer) |
protected float |
getProbabilityRuins() |
protected float |
getRarityForSpec(java.lang.Object spec) |
protected java.util.Set<java.lang.String> |
getTagsForSpec(java.lang.Object spec) |
void |
notifyAccepted(HistorianData.HistorianOffer offer) |
protected boolean |
playerKnowsSpecAlready(java.lang.String id) |
createOffer
createEntity, getFrequency, ignoresLimit, pickEntity, pickUnexploredRuins, setFrequency
public static int BASE_POINTS
protected int numAccepted
public static java.lang.String PREFIX
public void notifyAccepted(HistorianData.HistorianOffer offer)
notifyAccepted
in interface HistorianData.HistorianOfferCreator
notifyAccepted
in class BaseHistorianOfferCreator
protected BaseHistorianOfferWithLocation createOffer(SectorEntityToken entity, java.lang.String data)
createOffer
in class BlueprintOfferCreator
protected java.util.List<java.lang.Object> getAllSpecs()
getAllSpecs
in class BlueprintOfferCreator
protected java.lang.String getAlreadyUsedIdFromOffer(HistorianData.HistorianOffer offer)
getAlreadyUsedIdFromOffer
in class BlueprintOfferCreator
protected java.lang.String getIdForSpec(java.lang.Object spec)
getIdForSpec
in class BlueprintOfferCreator
protected java.util.Set<java.lang.String> getTagsForSpec(java.lang.Object spec)
getTagsForSpec
in class BlueprintOfferCreator
protected float getRarityForSpec(java.lang.Object spec)
getRarityForSpec
in class BlueprintOfferCreator
protected boolean playerKnowsSpecAlready(java.lang.String id)
playerKnowsSpecAlready
in class BlueprintOfferCreator
protected float getProbabilityRuins()
getProbabilityRuins
in class BlueprintOfferCreator
public java.lang.String getOfferId(BaseHistorianOffer offer)
getOfferId
in interface HistorianData.HistorianOfferCreator
getOfferId
in class BlueprintOfferCreator
public java.lang.String getBlueprintIdFromOfferId(java.lang.String offerId)
getBlueprintIdFromOfferId
in class BlueprintOfferCreator
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.