HyperView2.959 banner Documentation
 
Public Class AnimGob extends Gob implements AnimationConstants,HyperConstants



   // Important peekable Class variables
int animationFlags    // Main flag bits
Image bltImage        // Main source Image
Graphics bltGraphics  // Main source Graphics
int curClip           // The current clip in view
int totalClips        // Total # of clips
int totalWidth        // Width of entire Image.
int clipWidth         // Width of each clip = ImageWidth/TotalClips
int totalHeight       // Height of clip
AnimGob collisionSequence; // Alternate Animation to display on collision



 

Class Constructors:
 
           View   SourceFile
             |       |      target X 

             |       |     / target Y
             |       |    /   / Source Width
             |       |   /   /   | Source Height
             |       |   |   |   |   | Number of clips   
             |       |   |   |   |   |   |
             |       |   |   |   |   |   |
             |       |   |   |   |   |   |
AnimGob(HyperView,String,pX,pY,int,int,int);

ie:  Our 500 X 100 source image "sample_world_anim.gif"

Sample iamge

   There is thus 5 clips of 100 X 100

AnimGob myAnimGob = new AnimGob(currentView,"MyAnim.gif",500,100,5);




           View  Name prefix,file extension
             |       |          /  target X 

             |       |         /     /  target Y
             |       |        /     /  /  Source Width
             |       |       /     /  /   |   Source Height
             |       |      |     |   |   |   |   Number of clips   
             |       |      |     |   |   |   |   |  flags
             |       |      |     |   |   |   |   |   |
             |       |      |     |   |   |   |   |   |
AnimGob(HyperView,String,String ,int,int,int,int,int,int)








           View  Name prefix,file extension

             |       |          /  target X 

             |       |         /     /  target Y
             |       |        /     /  /  Source Width
             |       |       /     /  /   |   Source Height
             |       |      |     |   |   |   |   Number of clips   
             |       |      |     |   |   |   |   |
             |       |      |     |   |   |   |   | 
             |       |      |     |   |   |   |   | 
AnimGob(HyperView,String,String ,int,int,int,int,int)

AnimGob(HyperView tView,String tName,String tFileExtension,
int pX,int pY,int sourceWidth,int sourceHeight,int numberOfClips,
Spline tSpline,int tFlags)

public methods


public boolean setCollisionAnim(AnimGob);
Set the collision sequence to display when a collision happens.

todo:
Add different sequences per collision source.