EOS 2  1.1.0
Einfache Objektbasierte Sprache
Jump.java
gehe zur Dokumentation dieser Datei
1 /*
2  * To change this license header, choose License Headers in Project Properties.
3  * To change this template file, choose Tools | Templates
4  * and open the template in the editor.
5  */
6 package de.lathanda.eos.vm.commands;
7 
8 import de.lathanda.eos.vm.Command;
9 import de.lathanda.eos.vm.Machine;
10 
15 public class Jump extends Command {
16  int relativ;
17 
18  public Jump(int relativ) {
19  this.relativ = relativ;
20  }
21 
22  @Override
23  public boolean execute(Machine m) throws Exception {
24  m.jump(relativ);
25  return false;
26  }
27 
28  @Override
29  public String toString() {
30  return "Jump{" + relativ + '}';
31  }
32 
33 }
boolean execute(Machine m)
Definition: Jump.java:23
Impressum