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.
-
applet
- The applet representing the source of the URL.
-
city
- The city image.
-
earth
- The background earth or floor image
-
fire
- The 3 fire images.
-
gun
- The four rotated gun images.
-
hilite_h
- The 4 horizontal hilite images.
-
hilite_v
- The 4 vertical hilite images.
-
paratrooper
- A paratrooper image.
-
shadow_h
- The 4 horizontal shadow images.
-
shadow_v
- The 4 vertical shadow images.
-
smoke
- The 3 smoke images.
-
smudge
- The four rotated smudge images.
-
water_cross
- The single cross shaped water image.
-
water_elbow
- The 4 rotated elbow shaped water images.
-
water_end
- The 4 rotated end water images.
-
water_single
- The 4 rotated single water puddle images.
-
water_straight
- The 4 rotated straight shaped water images.
-
water_t
- The 4 rotated T shaped water images.
-
ClientImages()
-
-
buildAll(Applet)
- Build all images.
-
buildGunImages()
- Build all variations of the gun images by rotating
the original gun image.
-
buildSmudgeImages()
- Build all variations of the terrain smudge images by
rotating the orginal image.
-
loadAll(Applet)
- Get all of the images required by the client.
-
loadCityImages()
- Load the city images.
-
loadParatrooperAndGunImages()
- Load the paratrooper and gun images.
-
loadSmudgeImages()
- Load the terrain smudge image.
applet
public static Applet applet
- The applet representing the source of the URL.
earth
public static Image earth
- The background earth or floor image
hilite_h
public static Image hilite_h[]
- The 4 horizontal hilite images.
hilite_v
public static Image hilite_v[]
- The 4 vertical hilite images.
shadow_h
public static Image shadow_h[]
- The 4 horizontal shadow images.
shadow_v
public static Image shadow_v[]
- The 4 vertical shadow images.
smoke
public static Image smoke[]
- The 3 smoke images.
fire
public static Image fire[]
- The 3 fire images.
water_single
public static Image water_single[]
- The 4 rotated single water puddle images.
water_straight
public static Image water_straight[]
- The 4 rotated straight shaped water images.
water_elbow
public static Image water_elbow[]
- The 4 rotated elbow shaped water images.
water_t
public static Image water_t[]
- The 4 rotated T shaped water images.
water_end
public static Image water_end[]
- The 4 rotated end water images.
water_cross
public static Image water_cross
- The single cross shaped water image.
city
public static Image city
- The city image.
paratrooper
public static Image paratrooper
- A paratrooper image.
gun
public static Image gun[]
- The four rotated gun images.
smudge
public static Image smudge[]
- The four rotated smudge images.
ClientImages
public ClientImages()
loadCityImages
public static void loadCityImages()
- Load the city images.
loadParatrooperAndGunImages
public static void loadParatrooperAndGunImages()
- Load the paratrooper and gun images.
loadSmudgeImages
public static void loadSmudgeImages()
- Load the terrain smudge image.
buildGunImages
public static void buildGunImages()
- Build all variations of the gun images by rotating
the original gun image.
buildSmudgeImages
public static void buildSmudgeImages()
- Build all variations of the terrain smudge images by
rotating the orginal image.
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
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