Class games.Battle.client.ClientApplet.ClientImages
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class games.Battle.client.ClientApplet.ClientImages

java.lang.Object
   |
   +----games.Battle.client.ClientApplet.ClientImages

public class ClientImages
extends Object
ClientImages is responsible for loading and building all of the client images for the terrain, troops, water, etc. The class retains a collection of public static images, which are initialized with the call loadAll(applet). ClientImages loads a minimal set of images from the client URL and builds all of the other images from this original set with image processing routines.

Variable Index

 o applet
The applet representing the source of the URL.
 o city
The city image.
 o earth
The background earth or floor image
 o fire
The 3 fire images.
 o gun
The four rotated gun images.
 o hilite_h
The 4 horizontal hilite images.
 o hilite_v
The 4 vertical hilite images.
 o paratrooper
A paratrooper image.
 o shadow_h
The 4 horizontal shadow images.
 o shadow_v
The 4 vertical shadow images.
 o smoke
The 3 smoke images.
 o smudge
The four rotated smudge images.
 o water_cross
The single cross shaped water image.
 o water_elbow
The 4 rotated elbow shaped water images.
 o water_end
The 4 rotated end water images.
 o water_single
The 4 rotated single water puddle images.
 o water_straight
The 4 rotated straight shaped water images.
 o water_t
The 4 rotated T shaped water images.

Constructor Index

 o ClientImages()

Method Index

 o buildAll(Applet)
Build all images.
 o buildGunImages()
Build all variations of the gun images by rotating the original gun image.
 o buildSmudgeImages()
Build all variations of the terrain smudge images by rotating the orginal image.
 o loadAll(Applet)
Get all of the images required by the client.
 o loadCityImages()
Load the city images.
 o loadParatrooperAndGunImages()
Load the paratrooper and gun images.
 o loadSmudgeImages()
Load the terrain smudge image.

Variables

 o applet
  public static Applet applet
The applet representing the source of the URL.
 o earth
  public static Image earth
The background earth or floor image
 o hilite_h
  public static Image hilite_h[]
The 4 horizontal hilite images.
 o hilite_v
  public static Image hilite_v[]
The 4 vertical hilite images.
 o shadow_h
  public static Image shadow_h[]
The 4 horizontal shadow images.
 o shadow_v
  public static Image shadow_v[]
The 4 vertical shadow images.
 o smoke
  public static Image smoke[]
The 3 smoke images.
 o fire
  public static Image fire[]
The 3 fire images.
 o water_single
  public static Image water_single[]
The 4 rotated single water puddle images.
 o water_straight
  public static Image water_straight[]
The 4 rotated straight shaped water images.
 o water_elbow
  public static Image water_elbow[]
The 4 rotated elbow shaped water images.
 o water_t
  public static Image water_t[]
The 4 rotated T shaped water images.
 o water_end
  public static Image water_end[]
The 4 rotated end water images.
 o water_cross
  public static Image water_cross
The single cross shaped water image.
 o city
  public static Image city
The city image.
 o paratrooper
  public static Image paratrooper
A paratrooper image.
 o gun
  public static Image gun[]
The four rotated gun images.
 o smudge
  public static Image smudge[]
The four rotated smudge images.

Constructors

 o ClientImages
  public ClientImages()

Methods

 o loadCityImages
  public static void loadCityImages()
Load the city images.
 o loadParatrooperAndGunImages
  public static void loadParatrooperAndGunImages()
Load the paratrooper and gun images.
 o loadSmudgeImages
  public static void loadSmudgeImages()
Load the terrain smudge image.
 o buildGunImages
  public static void buildGunImages()
Build all variations of the gun images by rotating the original gun image.
 o buildSmudgeImages
  public static void buildSmudgeImages()
Build all variations of the terrain smudge images by rotating the orginal image.
 o buildAll
  public static void buildAll(Applet a)
Build all images. Pass in the applet in order to extract the originating URL. The method processes images which have already been loaded in order to create new images.
Parameters:
a - the applet from which the URL will be extracted
 o loadAll
  public static void loadAll(Applet a)
Get all of the images required by the client. Pass in the applet in order to extract the originating URL. The method uses MediaTracker to ensure the images have completely loaded before the client application can execute.
Parameters:
a - the applet from which the URL will be extracted

All Packages  Class Hierarchy  This Package  Previous  Next  Index