Files
jpexs-decompiler/trunk/src/com/jpexs/asdec/action/swf4/ActionRandomNumber.java
2010-09-06 15:32:07 +02:00

27 lines
779 B
Java

package com.jpexs.asdec.action.swf4;
import com.jpexs.asdec.action.Action;
import com.jpexs.asdec.action.treemodel.ConstantPool;
import com.jpexs.asdec.action.treemodel.RandomNumberTreeItem;
import com.jpexs.asdec.action.treemodel.TreeItem;
import java.util.List;
import java.util.Stack;
public class ActionRandomNumber extends Action {
public ActionRandomNumber() {
super(0x30, 0);
}
@Override
public String toString() {
return "RandomNumber";
}
@Override
public void translate(Stack<TreeItem> stack, ConstantPool constants, List<TreeItem> output, java.util.HashMap<Integer,String> regNames) {
TreeItem maximum = stack.pop();
stack.push(new RandomNumberTreeItem(this, maximum));
}
}