Exemplo n.º 1
0
 /*
  * RemoveEntity
  *
  * Constructor for remove entity operation. Holds all
  * data required to either undo or redo the given operation.
  *
  * ArrayList entities: the entities that are being removed from the level.
  *
  * Level level: the level that is having the entity removed.
  */
 public RemoveEntity(ArrayList entities, Level level)
 {
     mEntities = entities;
     mLevel = level;
 }
Exemplo n.º 2
0
 /*
  * EditorData
  *
  * Constructor for a passing wrapper between the editor and its tools
  */
 public EditorData(ArrayList selectedEntities, Entity onDeck, Level level)
 {
     mSelectedEntities = selectedEntities;
     mOnDeck = onDeck;
     mLevel = level;
 }
Exemplo n.º 3
0
 /*
  * AddEntity
  *
  * Constructor for add entity operation. Holds all
  * data required to either undo or redo the given operation.
  *
  * ArrayList entities: the entities that are being added to the level.
  *
  * Level level: the level that is having the entities added.
  */
 public AddEntity(ArrayList entities, Level level)
 {
     mEntities = entities;
     mLevel = level;
 }
Exemplo n.º 4
0
 /*
  * AddEntity
  *
  * Constructor for add entity operation. Holds all
  * data required to either undo or redo the given operation.
  *
  * Entity entity: the entity that is being added to the level.
  *
  * Level level: the level that is having the entity added.
  */
 public AddEntity(Entity entity, Level level)
 {
     mEntities = new ArrayList();
     mEntities.Add(entity);
     mLevel = level;
 }
Exemplo n.º 5
0
 /*
  * Cut
  *
  * Constructor for cut operation. Holds all
  * data required to either undo or redo the given operation.
  *
  * ArrayList entities: list of entities being cut
  *
  * Level level: the current working level
  */
 public Cut(ArrayList entities, Level level)
 {
     mEntities = entities;
     mOldClipboard = level.Clipboard;
     mLevel = level;
 }