|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Map
| Inner Class Summary | |
static class |
Map.Element
base class for map elements |
static interface |
Map.ElementAction
An interface for classes which want to modify a set of elements |
static class |
Map.Entity
|
static class |
Map.LightSource
|
static class |
Map.Line
line |
static interface |
Map.Listener
|
static interface |
Map.ScriptListener
|
static class |
Map.Sector
sector |
static class |
Map.SectSpecial
|
static class |
Map.Side
side |
static class |
Map.Vertex
vertex |
| Field Summary | |
boolean |
_isClipCached
|
static int |
DEF_CEILING_TEX
|
static int |
DEF_FLOOR_TEX
|
static int |
DEF_WALL_TEX
|
static java.lang.String |
DGMAP_EXT
|
static java.lang.String |
JSFMAP_EXT
|
static int |
NUM_DEF_TEXS
|
static long |
serialVersionUID
|
| Constructor Summary | |
Map(java.lang.String name,
int x,
int y,
java.lang.String defFloorTex,
java.lang.String defCeilingTex,
java.lang.String defWallTex)
|
|
| Method Summary | |
void |
addInProgress(java.awt.Point p)
|
void |
addLight(Map.LightSource light)
|
void |
addSector(Map.Sector s)
|
boolean |
addSelection(Map.Element elem,
boolean cache)
|
void |
clearSelections(boolean cache)
|
void |
doSelectionActions(Map.ElementAction act)
|
boolean |
exportMap(java.lang.String filename)
export the map into sdl-dg map format |
Map.LightSource |
findLight(Point3D p)
|
Point3D |
findSelectionsCenter()
find the centerpoint of all selected elements the centerpoint is the center of the bounding box which contains all the other centers |
void |
flipLine(Map.Line line)
|
void |
flipSectorLines(Map.Sector s)
|
void |
flipVertexLines(Map.Vertex v)
|
int |
getDefaultTex(int which)
|
Map.Element |
getFirstSelection()
|
Map.Vertex |
getLastSelectedVertex()
|
Map.Element |
getLastSelection()
|
int |
getMapHeightZ()
|
java.awt.Rectangle |
getMapRect()
|
java.awt.Dimension |
getMapSize()
|
int |
getNumSelections()
|
boolean |
hasSelections()
|
boolean |
hasTypeSelected(java.lang.Class c)
|
static Map |
importMap(java.lang.String filename)
|
boolean |
isSelected(Map.Element elem)
|
static Map |
loadMap(java.lang.String filename)
read the map from a file named by filename, using serialization |
static void |
main(java.lang.String[] args)
|
boolean |
mapContains(java.awt.Point p)
|
void |
mergeVertexes(Map.Vertex v)
|
void |
moveLightRelative(Map.LightSource light,
Point3D diff,
boolean cache)
|
boolean |
moveLine(Map.Line line,
java.awt.Point dist)
|
boolean |
moveSector(Map.Sector s,
java.awt.Point dist,
boolean cache)
|
void |
moveVertexRelative(Map.Vertex v,
java.awt.Point diff,
boolean cache)
|
void |
notifyListeners(java.awt.Rectangle clip)
|
void |
notifyListenersFromCachedClip()
notify map listeners based on the interally maintained aggregate cache of map modification clip rectangles |
void |
notifyListenersSize()
|
void |
notifyListenersTransient()
|
void |
notifyScriptListeners()
|
int |
numSelections()
|
void |
removeElement(Map.Element e)
|
boolean |
removeSelection(Map.Element elem,
boolean cache)
|
void |
save(java.lang.String filename)
|
boolean |
saveAs(java.lang.String filename)
save the map into a file named by filename, using serialization |
void |
setDefaultTex(int which,
int index)
|
void |
setDefaultTex(int which,
java.lang.String str)
|
void |
setMapSize(int x,
int y)
|
void |
setRubberBand(int ox,
int oy,
int oz,
int ex,
int ey,
int ez)
|
boolean |
setSelection(Map.Element elem,
boolean cache)
|
void |
setTransient(boolean state,
java.awt.Point p0,
java.awt.Point p1)
|
void |
splitLine(Map.Line line)
|
boolean |
toggleSelection(Map.Element elem,
boolean cache)
|
void |
unsetRubberBand()
|
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String JSFMAP_EXT
public static final java.lang.String DGMAP_EXT
public static final long serialVersionUID
public static final int DEF_FLOOR_TEX
public static final int DEF_CEILING_TEX
public static final int DEF_WALL_TEX
public static final int NUM_DEF_TEXS
public boolean _isClipCached
| Constructor Detail |
public Map(java.lang.String name,
int x,
int y,
java.lang.String defFloorTex,
java.lang.String defCeilingTex,
java.lang.String defWallTex)
| Method Detail |
public void setMapSize(int x,
int y)
public int getMapHeightZ()
public java.awt.Dimension getMapSize()
public java.awt.Rectangle getMapRect()
public boolean mapContains(java.awt.Point p)
public boolean addSelection(Map.Element elem,
boolean cache)
public boolean isSelected(Map.Element elem)
public boolean removeSelection(Map.Element elem,
boolean cache)
public boolean toggleSelection(Map.Element elem,
boolean cache)
public void clearSelections(boolean cache)
public boolean setSelection(Map.Element elem,
boolean cache)
public int getNumSelections()
public Map.Element getLastSelection()
public Map.Element getFirstSelection()
public Map.Vertex getLastSelectedVertex()
public void doSelectionActions(Map.ElementAction act)
public boolean hasTypeSelected(java.lang.Class c)
public Point3D findSelectionsCenter()
public int numSelections()
public boolean hasSelections()
public int getDefaultTex(int which)
public void setDefaultTex(int which,
int index)
public void setDefaultTex(int which,
java.lang.String str)
public void save(java.lang.String filename)
public void addInProgress(java.awt.Point p)
public void setTransient(boolean state,
java.awt.Point p0,
java.awt.Point p1)
public void unsetRubberBand()
public void setRubberBand(int ox,
int oy,
int oz,
int ex,
int ey,
int ez)
public void notifyListenersFromCachedClip()
public void notifyListeners(java.awt.Rectangle clip)
public void notifyListenersTransient()
public void notifyListenersSize()
public void notifyScriptListeners()
public void addLight(Map.LightSource light)
public void addSector(Map.Sector s)
public void removeElement(Map.Element e)
public void moveVertexRelative(Map.Vertex v,
java.awt.Point diff,
boolean cache)
public void moveLightRelative(Map.LightSource light,
Point3D diff,
boolean cache)
public boolean moveSector(Map.Sector s,
java.awt.Point dist,
boolean cache)
public boolean moveLine(Map.Line line,
java.awt.Point dist)
public void mergeVertexes(Map.Vertex v)
public void flipLine(Map.Line line)
public void flipSectorLines(Map.Sector s)
public void flipVertexLines(Map.Vertex v)
public void splitLine(Map.Line line)
public Map.LightSource findLight(Point3D p)
public boolean saveAs(java.lang.String filename)
public static Map loadMap(java.lang.String filename)
public boolean exportMap(java.lang.String filename)
public static Map importMap(java.lang.String filename)
public static void main(java.lang.String[] args)
throws java.lang.Exception
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||