|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Actor | |
---|---|
ch.aplu.android | Package of the JDroidLib framework for developing Android applications with a focus on gaming and simulations. |
ch.aplu.jcardgame | Addon package of the JDroidLib framework for developing card game applications. |
Uses of Actor in ch.aplu.android |
---|
Subclasses of Actor in ch.aplu.android | |
---|---|
class |
GGButtonBase
Abstract superclass of all button types. |
class |
GGCheckButton
Class that implements a check button actor with standard behavior. |
class |
GGPushButton
Class that implements a button actor with standard behavior. |
class |
GGRadioButton
Class that implements a radio button actor with standard behavior. |
class |
GGToggleButton
Class that implements a toggle button (2-state button) actor with standard behavior. |
class |
TextActor
Class that implements an actor to display text dynamically. |
class |
ToolBarItem
A class to represent actors used for tool bar items. |
class |
ToolBarSeparator
A class to represent actors used for tool bar items. |
class |
ToolBarStack
Class that represents a stack of items (e.g. card symbols with the same suit (in rank order). |
class |
ToolBarText
A class to represent a text actor used for tool bar items. |
class |
Turtle
A class that implements the basic behavior of a Logo turtle. |
Methods in ch.aplu.android that return Actor | |
---|---|
Actor |
GameGrid.getOneActor(java.lang.Class clazz)
Returns the first actor of specified class in the actor's list. |
Actor |
GameGrid.getOneActorAt(Location location)
Returns the first actor in the actor's list at the specific location. |
Actor |
GameGrid.getOneActorAt(Location location,
java.lang.Class clazz)
Returns the first actor of specified class in the actor's list at the specific location. |
Actor |
GameGrid.reverseSceneOrder(java.util.ArrayList<Actor> actors)
Reverses the order of the given actor list in the corresponding scene list. |
Actor |
GameGrid.shiftSceneOrder(java.util.ArrayList<Actor> actors,
boolean forward)
Shifts (rolls) the actors of the given actor list in the corresponding scene list forward or backward. |
Methods in ch.aplu.android that return types with arguments of type Actor | |
---|---|
java.util.ArrayList<Actor> |
GameGrid.getActors()
Returns all actors. |
java.util.ArrayList<Actor> |
GameGrid.getActors(java.lang.Class clazz)
Returns all actors of the specified class. |
java.util.ArrayList<Actor> |
GameGrid.getActorsAt(Location location)
Returns all actors at the given location. |
java.util.ArrayList<Actor> |
GameGrid.getActorsAt(Location location,
java.lang.Class clazz)
Returns all actors of given type in given cell. |
java.util.ArrayList<Actor> |
Actor.getCollisionActors()
Returns a list of partners that are collision candidates. |
java.util.ArrayList<Actor> |
Actor.getCollisionActorsInRange(double radius,
java.lang.Class clazz,
int spriteId)
Returns all collision candidates who belongs to a given class whose collision areas of the image with given sprite id intersects the circle with specified radius. |
java.util.ArrayList<Actor> |
Actor.getNeighbours(double distance)
Returns all actors in a specified distance. |
java.util.ArrayList<Actor> |
Actor.getNeighbours(double distance,
java.lang.Class clazz)
Returns all actors of specified class in a specified distance. |
java.util.ArrayList<Actor> |
GameGrid.getPaintOrderList()
Returns a list with actor references in the order they are painted. |
java.util.ArrayList<Actor> |
GameGrid.getPaintOrderList(java.lang.Class clazz)
Returns a list with actor references of the given class in the order they are painted. |
java.util.ArrayList<Actor> |
GameGrid.getTouchedActors(java.lang.Class clazz)
Returns a list with actor references of all actors of the given class whose touched area (of type IMAGE, RECTANGLE or CIRCLE) intersects with the current mouse touch position. |
Methods in ch.aplu.android with parameters of type Actor | |
---|---|
void |
GGActorTouchListener.actorTouched(Actor actor,
GGTouch touch,
android.graphics.Point spot)
Event callback method to report events with the touch area of an actor's sprite. |
void |
GameGrid.addActor(Actor actor,
Location location)
Same as addActor(Actor actor, Location location, double direction) with direction = 0 (to east). |
void |
GameGrid.addActor(Actor actor,
Location location,
double direction)
Adds a new actor at given starting position with given moving direction to the scene. |
void |
GameGrid.addActor(Actor actor,
Location location,
Location.CompassDirection compassDir)
Same as addActor(Actor actor, Location location, double direction) with compass direction. |
void |
GameGrid.addActorNoRefresh(Actor actor,
Location location)
Same as addActor(Actor actor, Location location), but the game grid window is not refreshed automatically. |
void |
GameGrid.addActorNoRefresh(Actor actor,
Location location,
double direction)
Same as addActor(Actor actor, Location location, double direction), but the game grid window is not refreshed automatically. |
void |
Actor.addCollisionActor(Actor partner)
Registers a partner actor that becomes a collision candidate, e.g. that is checked for collisions in every simulation cycle. |
int |
Actor.collide(Actor actor1,
Actor actor2)
Empty implementation of a GGActorCollisionListener called when the two actors collides. |
int |
GGActorCollisionListener.collide(Actor actor1,
Actor actor2)
Event callback method called when actors are colliding. |
int |
Actor.collide(Actor actor,
Location location)
Empty implementation of a GGTileCollisionListener called when the an actor collides with a tile. |
int |
GGTileCollisionListener.collide(Actor actor,
Location location)
Event callback method called when actors and tiles are colliding. |
boolean |
GameGrid.isActorColliding(Actor a1,
Actor a2)
Checks if the two given actors are colliding. |
boolean |
GameGrid.isTileColliding(Actor a,
Location location)
Checks if the given actor and the tile at the given tile location are colliding. |
void |
Actor.nearBorder(Actor actor,
Location location)
Empty implementation of a BorderListener called when the actor is set into a border cell. |
void |
GGBorderListener.nearBorder(Actor actor,
Location location)
Event callback method called when the actor enters a border cell. |
boolean |
GameGrid.removeActor(Actor actor)
Removes the given actor from the scene, so that act() is not called any more. |
void |
GameGrid.setActorOnBottom(Actor actor)
Puts the given actor at first place in the corresponding scene list, in order to act last and to be drawn on the bottom of other actors of the same class. |
void |
GameGrid.setActorOnTop(Actor actor)
Puts the given actor at last place in the corresponding scene list, in order to act first and to be drawn on top of other actors of the same class. |
Method parameters in ch.aplu.android with type arguments of type Actor | |
---|---|
void |
Actor.addCollisionActors(java.util.ArrayList<Actor> partnerList)
Registers all actors in a list as collision candidates. |
Actor |
GameGrid.reverseSceneOrder(java.util.ArrayList<Actor> actors)
Reverses the order of the given actor list in the corresponding scene list. |
void |
GameGrid.setSceneOrder(java.util.ArrayList<Actor> actors)
Sets the act and paint order of the actors in the given list by rearraging their scene list to the order in the given list. |
Actor |
GameGrid.shiftSceneOrder(java.util.ArrayList<Actor> actors,
boolean forward)
Shifts (rolls) the actors of the given actor list in the corresponding scene list forward or backward. |
Uses of Actor in ch.aplu.jcardgame |
---|
Subclasses of Actor in ch.aplu.jcardgame | |
---|---|
class |
CardActor
Class that represents the game grid actor that belongs to the sprite image of a card. |
class |
CardCover
Class that represents the cover (back) of a card (card with face down). |
Methods in ch.aplu.jcardgame that return Actor | ||
---|---|---|
|
Deck.getSeedActor(T suit,
R rank)
Returns the JGameGrid actor attributed to the card with the specified suit and rank. |
Methods in ch.aplu.jcardgame with parameters of type Actor | |
---|---|
void |
Hand.actorTouched(Actor actor,
GGTouch touch,
android.graphics.Point spot)
Implementation of GGActorTouchListener. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |