|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aranai.dungeonator.generator.DungeonRoomEditor
public class DungeonChunkEditor
Handles in-game chunk editing for tiles. Supports manual construction and cuboid operations. The editing operation is destructive, and should be performed on test maps or an editor-specific map only. The editor automatically generates doorway hints and chunk boundaries to assist in the editing process. Meta data tagging commands are provided for specifying doorways, internal pathing, widget regions, and so forth.
Field Summary | |
---|---|
private java.lang.String |
activeFile
The active file. |
private DungeonChunk |
chunk
The chunk. |
private Dungeonator |
dungeonator
Dungeonator instance |
private boolean |
hasUnsavedChanges
Flag: editor has unsaved changes. |
private boolean |
isActive
Flag: editor is active. |
Constructor Summary | |
---|---|
DungeonChunkEditor(Dungeonator d)
Instantiates the dungeon chunk editor. |
Method Summary | |
---|---|
void |
cancel()
Cancel the edit operation. |
void |
cmdCancel(DCommandEvent cmd)
Command: Cancel Edit This will cancel the editing process. |
void |
cmdExits(DCommandEvent cmd)
Command: Exits Parent command for getting, setting, and removing exit data for the current chunk. |
void |
cmdLoad(DCommandEvent cmd)
Command: Load DungeonChunk This will activate the editor with a specified chunk loaded. |
void |
cmdNew(DCommandEvent cmd)
Command: New DungeonChunk This will activate the editor with a blank chunk. |
void |
cmdSave(DCommandEvent cmd)
Command: Save DungeonChunk This will save the current DungeonChunk. |
void |
load(java.lang.String file)
Load. |
void |
onCommand(DCommandEvent cmd)
Process an edit command. |
void |
save()
Save the currently active chunk with an inferred path and name. |
void |
save(java.lang.String name)
Save the currently active chunk with an inferred path and specified name. |
void |
save(java.lang.String path,
java.lang.String name)
Save the currently active chunk with an specified path and specified name. |
void |
start(DungeonChunk c)
Starts the editing operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Dungeonator dungeonator
private boolean isActive
private boolean hasUnsavedChanges
private DungeonChunk chunk
private java.lang.String activeFile
Constructor Detail |
---|
public DungeonChunkEditor(Dungeonator d)
Method Detail |
---|
public void start(DungeonChunk c)
c
- the cpublic void load(java.lang.String file)
file
- the filepublic void cancel()
public void save()
public void save(java.lang.String name)
name
- the namepublic void save(java.lang.String path, java.lang.String name)
path
- the pathname
- the namepublic void onCommand(DCommandEvent cmd)
p
- the playercommand
- the commandargs
- additional argumentspublic void cmdNew(DCommandEvent cmd)
p
- the pargs
- the argspublic void cmdLoad(DCommandEvent cmd)
p
- the player triggering the commandargs
- the argspublic void cmdCancel(DCommandEvent cmd)
p
- the player triggering the commandpublic void cmdSave(DCommandEvent cmd)
p
- the player triggering the commandargs
- the argspublic void cmdExits(DCommandEvent cmd)
p
- the pargs
- the args
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |