1 package net.systemeD.halcyon.connection.actions {
3 import net.systemeD.halcyon.connection.*;
5 public class ReverseNodesAction extends UndoableEntityAction {
7 private var nodeList:Array;
9 public function ReverseNodesAction(way:Way, nodeList:Array) {
10 super(way, "Reverse");
11 this.nodeList = nodeList;
14 public override function doAction():uint {
17 entity.dispatchEvent(new EntityEvent(Connection.WAY_REORDERED, entity));
21 public override function undoAction():uint {
24 entity.dispatchEvent(new EntityEvent(Connection.WAY_REORDERED, entity));