5859606162636465666768
Gigi gigi = new Gigi(); addActor(strega); addActor(gigi); // eseguo il thread separato di ragionamento della strega strega.start(); } /** * @return l'Actor corrispondente al giocatore identificato dall'ID GIGI, null se non lo trova */
242243244245246247248249250251252
ArrayList<Actor> actor = new ArrayList<Actor>(); for (int x=0;x<map.getWidth();x++) { for (int y=0;y<map.getHeight();y++) { if (attori[x][y]){ Strega strega = new Strega(worldEngine, x, y); strega.start(); actor.add(strega); } } } return actor;