Package com.jcloisterzone.feature

Source Code of com.jcloisterzone.feature.City

package com.jcloisterzone.feature;

import static com.jcloisterzone.ui.I18nUtils._;

import com.jcloisterzone.PointCategory;
import com.jcloisterzone.TradeResource;
import com.jcloisterzone.feature.visitor.score.CityScoreContext;

public class City extends CompletableFeature {

    private int pennants = 0;
    private TradeResource tradeResource;
    private boolean besieged, cathedral, pricenss, castleBase;

    public TradeResource getTradeResource() {
        return tradeResource;
    }
    public void setTradeResource(TradeResource tradeResource) {
        this.tradeResource = tradeResource;
    }
    public int getPennants() {
        return pennants;
    }
    public void setPennants(int pennants) {
        this.pennants = pennants;
    }

    public boolean isBesieged() {
        return besieged;
    }
    public void setBesieged(boolean besieged) {
        this.besieged = besieged;
    }
    public boolean isCathedral() {
        return cathedral;
    }
    public void setCathedral(boolean cathedral) {
        this.cathedral = cathedral;
    }
    public boolean isPricenss() {
        return pricenss;
    }
    public void setPricenss(boolean pricenss) {
        this.pricenss = pricenss;
    }

    public boolean isCastleBase() {
        return castleBase;
    }
    public void setCastleBase(boolean castleBase) {
        this.castleBase = castleBase;
    }

    @Override
    public CityScoreContext getScoreContext() {
        return new CityScoreContext(getGame());
    }

    @Override
    public PointCategory getPointCategory() {
        return PointCategory.CITY;
    }

    public static String name() {
        return _("City");
    }


}
TOP

Related Classes of com.jcloisterzone.feature.City

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.