⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 obj.java

📁 j2me游戏引擎
💻 JAVA
字号:
/*        
        GAEM - Graphical Adventure Engine for Mobiles (version 0.1)
        Copyright (C) 2005 Victor Borrull
        
        This file is part of GAEM.
        GAEM is free software; you can redistribute it and/or modify it under the terms
        of the GNU General Public License as published by the Free Software Foundation; either
        version 2 of the License, or (at your option) any later version.
        GAEM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
        without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
        See the GNU General Public License for more details.
        You should have received a copy of the GNU General Public License along with this program;
        if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/

import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.*;
/** Clase Objeto*/
public abstract class Obj extends Sprite {
        /**Descripci髇 del objeto*/
	private String descripcion;
        /**se puede coger el objeto?*/
	private boolean [] eCogible;
        /**frase al coger (o no coger) el objeto*/
	private String [] eFraseCogido;
        /**Numero de estados*/
        private int numeroEstados;
        /**Rutas a los ficheros de imagenes*/
        private String [] eImgPath;
        /**Descripciones correspondientes a cada estado*/
        private String [] eDesc;
        /**Im醙enes correspondientes a cada estado*/
        public Image [] eImg;
        /**Frases de uso correspondientes a cada estado*/
        private String [] eFrase;
        /**Frases de error si los objetos a usar coinciden, pero no sus estados*/
        private String [] eFraseErrorEstado;
        
        /**N鷐ero de mapa de donde ha de ser originario el Obj a usar*/
        private int [] eNumMapa;
        /**Posici髇 en la lista del mapa que ha de ocupar el Obj a usar*/
        private int [] eNumObj;
        /**Estado en el que tiene que estar el Obj a usar para poder ser usado con el actual en su actual estado*/
        private int [] eUsabEnEstado;

        /**Numero de mapa donde esta _este_ Obj*/
        private int mapa;
        /**Posici髇 en la lista del mapa que ocupa _este_ Obj*/
        private int posicionLista;
        /**Estado en el que se encuentra el objeto*/
        private int estadoActual = 0;
        
        /**Imagen temporal global para ser usada dentro de los bloques try{}*/
        private Image imag;
        /**Imagen del objeto vacio (dummy)*/
        private Image vacio;
        /**Posici髇 del Obj en el array {@link Inventario#lista Inventario.lista[]}. Por defecto vale 6, es decir, no se halla en el inventario*/
        private int posicionInventario = 6;
        
        /**Flag para distinguir Obj animados y est醫icos*/
        private boolean esAnimado = false;
        /**Flag para distinguir entre Obj clave y los que no lo son*/
        private boolean esClave = false;
        /**N鷐ero de mapa que ser

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -