mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-02 11:54:36 +00:00
27 lines
779 B
Java
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));
|
|
}
|
|
} |