com.vodafone.v10.graphics.j3d
Class ActionTable

java.lang.Object
  |
  +--com.vodafone.v10.graphics.j3d.ActionTable

public class ActionTable
extends java.lang.Object

Action table class.


Constructor Summary
ActionTable(byte[] data)
          ActionTable constructor
ActionTable(java.lang.String name)
          ActionTable constructor
 
Method Summary
 int getNumAction()
          Gets the action count.
 int getNumFrame(int action)
          Gets the frame count.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionTable

public ActionTable(byte[] data)
ActionTable constructor
Parameters:
data - Array of action data
Throws:
NullPointerException - if data is null.
RuntimeException - if creation failed.
IllegalStateException - if called during sprite execution.

ActionTable

public ActionTable(java.lang.String name)
            throws java.io.IOException
ActionTable constructor
Parameters:
name - Resource name
Throws:
NullPointerException - if resource name is null.
RuntimeException - if creation failed.
java.io.IOException - if resource could not be opened.
IllegalStateException - if called during sprite execution.
Method Detail

getNumAction

public final int getNumAction()
Gets the action count.
Returns:
int - Action count
Throws:
IllegalStateException - if called during sprite execution.

getNumFrame

public final int getNumFrame(int action)
Gets the frame count.
Parameters:
action - Action number
Throws:
IllegalStateException - if called during sprite execution.
IllegalArgumentException - if the action number is outside the range of the action table.


Copyright 2002,2003 Aplix Corporation. All rights reserved. Aplix Confidential and Restricted.