ch.sahits.game.openpatrician.model
Class Difficulty

java.lang.Object
  extended by ch.sahits.game.openpatrician.model.Difficulty

public final class Difficulty
extends Object

Defining the difficulty in the game

Author:
Andi Hotz, (c) Sahits GmbH, 2011 Created on Jun 12, 2011

Field Summary
private  EDifficultyLevel approval
          Difficulty approval: at higher settings for every action that increases the approval rating a malus is taken into account.
static Difficulty CHANDLER
           
static Difficulty COUNSILMAN
           
static Difficulty MERCHANT
           
private  EDifficultyLevel navalBattle
          Naval battle strength: at higher levels the opponents navigate more intelligent.
private  EDifficultyLevel need
          Need of civilians: at higher levels the citicens are more easily unhappy when certain wares are missing.
private  int numberOfShips
          Number of starting ships
static Difficulty PATRICIAN
           
private  EDifficultyLevel pirateActivity
          Pirate activity: at higher levels there are more pirates that are more havily armed.
private  EDifficultyLevel sovereignActivity
          Activity of the sovereign: at higher levels the sovereign uses larger armies and sieges do happen more often.
private  int startingCapital
          starting capital
private  EDifficultyLevel trade
          Difficulty trade: at higher settings the buying prices are higher and the selling prices, thus reducing the margin of profit
static Difficulty TRADESMAN
           
 
Constructor Summary
Difficulty(EDifficultyLevel trade, EDifficultyLevel approval, EDifficultyLevel need, EDifficultyLevel navalBattle, EDifficultyLevel pirateActivity, EDifficultyLevel sovereignActivity, int startingCapital, int numberOfShips)
           
 
Method Summary
 EDifficultyLevel getApproval()
           
 EDifficultyLevel getNavalBattle()
           
 EDifficultyLevel getNeed()
           
 int getNumberOfShips()
           
 EDifficultyLevel getPirateActivity()
           
 EDifficultyLevel getSovereignActivity()
           
 int getStartingCapital()
           
 EDifficultyLevel getTrade()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHANDLER

public static final Difficulty CHANDLER

MERCHANT

public static final Difficulty MERCHANT

TRADESMAN

public static final Difficulty TRADESMAN

COUNSILMAN

public static final Difficulty COUNSILMAN

PATRICIAN

public static final Difficulty PATRICIAN

trade

private final EDifficultyLevel trade
Difficulty trade: at higher settings the buying prices are higher and the selling prices, thus reducing the margin of profit


approval

private final EDifficultyLevel approval
Difficulty approval: at higher settings for every action that increases the approval rating a malus is taken into account. The approval rating thus rises more slowly.


need

private final EDifficultyLevel need
Need of civilians: at higher levels the citicens are more easily unhappy when certain wares are missing.


navalBattle

private final EDifficultyLevel navalBattle
Naval battle strength: at higher levels the opponents navigate more intelligent.


pirateActivity

private final EDifficultyLevel pirateActivity
Pirate activity: at higher levels there are more pirates that are more havily armed.


sovereignActivity

private final EDifficultyLevel sovereignActivity
Activity of the sovereign: at higher levels the sovereign uses larger armies and sieges do happen more often.


startingCapital

private final int startingCapital
starting capital


numberOfShips

private final int numberOfShips
Number of starting ships

Constructor Detail

Difficulty

public Difficulty(EDifficultyLevel trade,
                  EDifficultyLevel approval,
                  EDifficultyLevel need,
                  EDifficultyLevel navalBattle,
                  EDifficultyLevel pirateActivity,
                  EDifficultyLevel sovereignActivity,
                  int startingCapital,
                  int numberOfShips)
Method Detail

getTrade

public EDifficultyLevel getTrade()

getApproval

public EDifficultyLevel getApproval()

getNeed

public EDifficultyLevel getNeed()

getNavalBattle

public EDifficultyLevel getNavalBattle()

getPirateActivity

public EDifficultyLevel getPirateActivity()

getSovereignActivity

public EDifficultyLevel getSovereignActivity()

getStartingCapital

public int getStartingCapital()

getNumberOfShips

public int getNumberOfShips()


Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.