blob: fb56698a5411ce0240728688302e07c3f1ceeaf7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package mahjong.engine;
import java.util.Vector;
/**
* Created by joe on 12/3/14.
*/
public class Logger {
Vector<Action> actions = new Vector<Action>();
public Logger(String str)
{
for (String entry:str.split("\n"))
add(new Action(entry));
}
public void add(Action action)
{
actions.add(action);
}
@Override
public String toString() {
String str="";
for (Action action:actions)
str.concat(action.toString());
return super.toString();
}
}
|