?? map.java
字號(hào):
package org.gamecollege.j2me.rpg;
import javax.microedition.lcdui.game.TiledLayer;
import java.util.Vector;
/**
* Description:游戲地圖封裝類, 地圖中有RPGObject集合。 有可行走的TileLayer,用于做碰撞檢測(cè)的TileLayer.
* 有Linkers集合 地圖的表現(xiàn)由RPGGameCanvas實(shí)現(xiàn)
*
* @see org.gamecollege.j2me.rpg.RPGGameCanvas#constructMap()
*/
public class Map {
//作碰撞檢測(cè)的TiledLayer
TiledLayer collisionArea;
/**
* 地圖總列數(shù)
*/
int cols;
/**
* 地圖編號(hào)
*/
int mapNo;
/**
* 地圖總行數(shù)
*/
int rows;
/**
* 地圖描述
*/
String description;
/**
* 英雄在地圖中出現(xiàn)的列號(hào)
*/
int heroAppearCol;
/**
* 英雄在地圖中出現(xiàn)的行號(hào)
*/
int heroAppearRow;
/**
* 柵格寬度
*/
int tileWidth;
/**
* 柵格高度
*/
int tileHeight;
/**
* RPGObject列表
*/
Vector rpgObjects;
/**
* 地圖中的Linkers列表
*
* @see org.gamecollege.j2me.rpg.Player
*/
Vector linkers;
//地圖中的行走區(qū)列表,可以有多個(gè)行走區(qū)進(jìn)行疊加
Vector walkableArea;
//是否是會(huì)發(fā)生戰(zhàn)斗的地圖
boolean isFightMap;
//發(fā)生隨機(jī)戰(zhàn)斗時(shí)使用的隨機(jī)背景集合
Vector randFightBgImages;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -