komoku / aetheria

Aetheria Game Engine - Migrated from code.google.com/p/aetheria
Other
8 stars 0 forks source link

Invocación de métodos bsh entre entidades no funciona con parámetros de tipo básico #169

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
El código del mundo:
Código:
//world
include("lib/noaccents.bsh");

void intro( Player aPlayer )
{

    abstractEntity("multimedia").marcoArriba ( aPlayer, 300);   

   aPlayer.write("Bienvenido a esta aventura...\n");

}

El código de la entidad abstracta:

Código:
//multimedia

//Gráficos
//Añadir un marco arriba : marcoArriba(mobile, ancho);

void marcoArriba( Mobile aCreature , int alto)
{
    if ( aCreature.getIO() instanceof MultimediaInputOutputClient && aCreature.getIO().isGraphicsEnabled() )
     {
      MultimediaInputOutputClient theClient = aCreature.getIO();
      aCreature.getIO().removeFrames();
      aCreature.getIO().addFrame ( ImageConstants.RIGHT, 0 );
      aCreature.getIO().addFrame ( ImageConstants.RIGHT , 0 );
      aCreature.getIO().addFrame ( ImageConstants.TOP , alto);
      aCreature.getIO().addFrame ( ImageConstants.BOTTOM , 0);
      } 
}

La invocación no funciona, sí que va con new Integer.

Original issue reported on code.google.com by komoku on 5 Apr 2011 at 2:17

GoogleCodeExporter commented 9 years ago

Original comment by komoku on 5 Apr 2011 at 2:40

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r246.

Original comment by komoku on 5 Apr 2011 at 2:40