From 96bc701ba7a01b940ad5910d85c7b6958ac4a141 Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Sat, 6 Dec 2014 19:48:28 +0800 Subject: Restructuring & workflow construction --- engine/Logger.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'engine/Logger.java') diff --git a/engine/Logger.java b/engine/Logger.java index fb56698..566fa08 100644 --- a/engine/Logger.java +++ b/engine/Logger.java @@ -19,6 +19,13 @@ public class Logger { actions.add(action); } + public int getLastGuidIndex() + { + if (actions.size()==0) + return -1; + return actions.lastElement().getGuid(); + } + @Override public String toString() { String str=""; -- cgit v1.2.3-70-g09d2