nwnintf
Class SavedBlueSlot

java.lang.Object
  |
  +--nwnintf.SavedBlueSlot
All Implemented Interfaces:
SavedSlot

public class SavedBlueSlot
extends java.lang.Object
implements SavedSlot

Encapsulate a BlueSlotRef and the ItpEntry its information is stored in.


Field Summary
static java.lang.String GENELT
           
static java.lang.String ORIGELT
           
static java.lang.String RESREFELT
           
static java.lang.String RESTYPEELT
           
static java.lang.String SLOTELT
           
 
Constructor Summary
SavedBlueSlot(ItpEntry ent)
           
 
Method Summary
 ResRef delete(ModFile mod, SezFile sez)
          Restore the slot of the blueprint this is saved into.
 ItpEntry getEntry()
           
 ScriptSlotRef getSlotref()
           
static SavedBlueSlot saveNew(BlueSlotRef blueslot, ModFile mod, SezFile sez, ResRef script)
           
 void update(ModFile mod, SezFile sez, ScriptCode scriptcode)
          An existing saved slot has new text for the script.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORIGELT

public static java.lang.String ORIGELT

GENELT

public static java.lang.String GENELT

RESREFELT

public static java.lang.String RESREFELT

RESTYPEELT

public static java.lang.String RESTYPEELT

SLOTELT

public static java.lang.String SLOTELT
Constructor Detail

SavedBlueSlot

public SavedBlueSlot(ItpEntry ent)
              throws java.lang.Exception
Method Detail

getSlotref

public ScriptSlotRef getSlotref()
Specified by:
getSlotref in interface SavedSlot

getEntry

public ItpEntry getEntry()

saveNew

public static SavedBlueSlot saveNew(BlueSlotRef blueslot,
                                    ModFile mod,
                                    SezFile sez,
                                    ResRef script)
                             throws java.lang.Exception
java.lang.Exception

update

public void update(ModFile mod,
                   SezFile sez,
                   ScriptCode scriptcode)
            throws java.lang.Exception
An existing saved slot has new text for the script.

Specified by:
update in interface SavedSlot
java.lang.Exception

delete

public ResRef delete(ModFile mod,
                     SezFile sez)
              throws java.lang.Exception
Restore the slot of the blueprint this is saved into.

Specified by:
delete in interface SavedSlot
Returns:
Resref (typeless) of the script that was originally in this slot.
java.lang.Exception