game.military
Class Category.Air

java.lang.Object
  |
  +--game.military.Category
        |
        +--game.military.Category.Air
Enclosing class:
Category

public static class Category.Air
extends Category

Class to define air units.


Nested Class Summary
 
Nested classes inherited from class game.military.Category
Category.Air, Category.Coastal, Category.Foot, Category.Horse, Category.LightWheel, Category.Naval, Category.Track, Category.WaterBased, Category.Wheel
 
Field Summary
 
Fields inherited from class game.military.Category
AIR, COASTAL, FOOT, HORSE, LIGHTWHEEL, NAVAL, TRACK, WHEEL
 
Constructor Summary
protected Category.Air()
          Constructor.
 
Method Summary
 boolean canFly()
          Determine whether the unit is an air unit.
(package private)  boolean canGoOnSea()
           
 java.lang.String toString()
          String representation.
 
Methods inherited from class game.military.Category
get, isSeaGoing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Category.Air

protected Category.Air()
Constructor.

Method Detail

canFly

public boolean canFly()
Determine whether the unit is an air unit.

Overrides:
canFly in class Category
Returns:
true if the unit can go fly.

canGoOnSea

boolean canGoOnSea()

toString

public java.lang.String toString()
String representation.

Overrides:
toString in class java.lang.Object
Returns:
string representation.