games.strategy.triplea.delegate
Class TechTracker

java.lang.Object
  extended by games.strategy.triplea.delegate.TechTracker
All Implemented Interfaces:
java.io.Serializable

public class TechTracker
extends java.lang.Object
implements java.io.Serializable

Tracks which players have which technology advances.

Version:
1.0
Author:
Sean Bridges
See Also:
Serialized Form

Constructor Summary
TechTracker()
          Creates new TechTracker
 
Method Summary
static void addAdvance(PlayerID player, GameData data, IDelegateBridge bridge, TechAdvance advance)
           
static java.util.Collection<TechAdvance> getTechAdvances(PlayerID id)
           
static java.util.Collection<TechAdvance> getTechCategories(PlayerID id)
           
static boolean hasAARadar(PlayerID player)
           
static boolean hasDestroyerBombard(PlayerID player)
           
static boolean hasHeavyBomber(PlayerID player)
           
static boolean hasImprovedArtillerySupport(PlayerID player)
           
static boolean hasIncreasedFactoryProduction(PlayerID player)
           
static boolean hasIndustrialTechnology(PlayerID player)
           
static boolean hasJetFighter(PlayerID player)
           
static boolean hasLongRangeAir(PlayerID player)
           
static boolean hasMechanizedInfantry(PlayerID player)
           
static boolean hasParatroopers(PlayerID player)
           
static boolean hasRocket(PlayerID player)
           
static boolean hasShipyards(PlayerID player)
           
static boolean hasSuperSubs(PlayerID player)
           
static boolean hasWarBonds(PlayerID player)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TechTracker

public TechTracker()
Creates new TechTracker

Method Detail

getTechAdvances

public static java.util.Collection<TechAdvance> getTechAdvances(PlayerID id)

getTechCategories

public static java.util.Collection<TechAdvance> getTechCategories(PlayerID id)

addAdvance

public static void addAdvance(PlayerID player,
                              GameData data,
                              IDelegateBridge bridge,
                              TechAdvance advance)

hasLongRangeAir

public static boolean hasLongRangeAir(PlayerID player)

hasHeavyBomber

public static boolean hasHeavyBomber(PlayerID player)

hasSuperSubs

public static boolean hasSuperSubs(PlayerID player)

hasJetFighter

public static boolean hasJetFighter(PlayerID player)

hasRocket

public static boolean hasRocket(PlayerID player)

hasIndustrialTechnology

public static boolean hasIndustrialTechnology(PlayerID player)

hasDestroyerBombard

public static boolean hasDestroyerBombard(PlayerID player)

hasImprovedArtillerySupport

public static boolean hasImprovedArtillerySupport(PlayerID player)

hasParatroopers

public static boolean hasParatroopers(PlayerID player)

hasIncreasedFactoryProduction

public static boolean hasIncreasedFactoryProduction(PlayerID player)

hasWarBonds

public static boolean hasWarBonds(PlayerID player)

hasMechanizedInfantry

public static boolean hasMechanizedInfantry(PlayerID player)

hasAARadar

public static boolean hasAARadar(PlayerID player)

hasShipyards

public static boolean hasShipyards(PlayerID player)