Skip to content
Snippets Groups Projects
Commit 42992f19 authored by Lucas Stratmann's avatar Lucas Stratmann
Browse files

Changes to create compatability to Ardublock

parent 1323f833
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -14,7 +14,7 @@ import tec.letsgoing.ardublock.simulator.simcode.SimCode;
* @author Lucas
*
*/
public class SimCodeFunction {
public class SimCodeFunction extends SimCode {
private String name;
private Vector<SimCode> codeBlocks = new Vector<SimCode>();
private Vector<Variable> vars = new Vector<Variable>();
......@@ -26,7 +26,7 @@ public class SimCodeFunction {
codeBlocks = vec;
}
public void run(Arduino _arduino, SimCodeFunction functionHead) {
public SimCode run(Arduino _arduino, SimCodeFunction functionHead) {
if (functionHead == null) {
isMain = true;
this.arduino = _arduino;
......@@ -36,7 +36,7 @@ public class SimCodeFunction {
for (SimCode code : codeBlocks) {
code.run(_arduino, this);
}
return null;
}
public String getName() {
......@@ -76,4 +76,10 @@ public class SimCodeFunction {
}
@Override
public String toString() {
// TODO Auto-generated method stub
return null;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment