B
Bengaltiger
Gast
Hallo
ich programmiere grad ein mini spiel mit GameGrid von aplu.
doch ich komme grad nicht weiter.
-----------------------------------------------------------------------------------------------------------------
getOneActor
public Actor getOneActor(java.lang.Class clazz)
Returns the first actor of specified class in the actor's list. Useful when only one actor of the specified class is present. The actor is considered to have the type of its superclasses too.
Parameters:
clazz - the class of the actors to look for, if null all actors are considered
Returns:
the first actor in the actor's list or null, if no actor is found
--------------------------------------------------------------------------------------------------------------------
->das kann ich deklarieren indem ich Actor beispiel= gameGrid.getOneActor(Bespiel.class); schreibe
-------------------------------------------------------------------------------------------------------------------
getActors
public java.util.ArrayList<Actor> getActors(java.lang.Class clazz)
Returns all actors of the specified class. The actor is considered to have the type of its superclasses too.
Parameters:
clazz - the class of the actors to look for, if null all actors are returned
Returns:
an ArrayList that contains actors of the given class
----------------------------------------------------------------------------------------------------------------------
-> bei dem weis ich es nicht wie man das machen kann
weis einer ne lösung?
Dane voraus
ich programmiere grad ein mini spiel mit GameGrid von aplu.
doch ich komme grad nicht weiter.
-----------------------------------------------------------------------------------------------------------------
getOneActor
public Actor getOneActor(java.lang.Class clazz)
Returns the first actor of specified class in the actor's list. Useful when only one actor of the specified class is present. The actor is considered to have the type of its superclasses too.
Parameters:
clazz - the class of the actors to look for, if null all actors are considered
Returns:
the first actor in the actor's list or null, if no actor is found
--------------------------------------------------------------------------------------------------------------------
->das kann ich deklarieren indem ich Actor beispiel= gameGrid.getOneActor(Bespiel.class); schreibe
-------------------------------------------------------------------------------------------------------------------
getActors
public java.util.ArrayList<Actor> getActors(java.lang.Class clazz)
Returns all actors of the specified class. The actor is considered to have the type of its superclasses too.
Parameters:
clazz - the class of the actors to look for, if null all actors are returned
Returns:
an ArrayList that contains actors of the given class
----------------------------------------------------------------------------------------------------------------------
-> bei dem weis ich es nicht wie man das machen kann
weis einer ne lösung?
Dane voraus