controlP5
Class ControllerSprite

java.lang.Object
  extended by controlP5.ControllerSprite
All Implemented Interfaces:
java.lang.Cloneable

public class ControllerSprite
extends java.lang.Object
implements java.lang.Cloneable


Constructor Summary
ControllerSprite(ControlP5 theControlP5, processing.core.PImage theImage, int theWidth, int theHeight)
           
ControllerSprite(ControlP5 theControlP5, processing.core.PImage theImage, int theWidth, int theHeight, int theStates)
           
 
Method Summary
 ControllerSprite clone()
           
 void disableMask()
           
 void draw(processing.core.PApplet theApplet)
           
 void enableMask()
           
 int getState()
           
 int getStateCount()
           
 int height()
           
 void setForceState(int state)
           
 void setMask(processing.core.PImage theImage)
           
 void setOffset(int theX, int theY)
           
 void setState(int theState)
           
 void setTotalStates(int count)
           
 void update()
           
 int width()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControllerSprite

public ControllerSprite(ControlP5 theControlP5,
                        processing.core.PImage theImage,
                        int theWidth,
                        int theHeight)

ControllerSprite

public ControllerSprite(ControlP5 theControlP5,
                        processing.core.PImage theImage,
                        int theWidth,
                        int theHeight,
                        int theStates)
Method Detail

draw

public void draw(processing.core.PApplet theApplet)

update

public void update()

setTotalStates

public void setTotalStates(int count)

setForceState

public void setForceState(int state)

getStateCount

public int getStateCount()

setOffset

public void setOffset(int theX,
                      int theY)

setState

public void setState(int theState)

getState

public int getState()

width

public int width()

height

public int height()

setMask

public void setMask(processing.core.PImage theImage)

enableMask

public void enableMask()

disableMask

public void disableMask()

clone

public ControllerSprite clone()
Overrides:
clone in class java.lang.Object


processing library controlP5 by Andreas Schlegel. (c) 2010