5 * Created by Alyssa Milburn on 02/02/2005.
6 * Copyright 2005 Alyssa Milburn. All rights reserved.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
25 PRT: BANG (command) strength (integer)
28 void caosVM::c_PRT_BANG() {
30 VM_PARAM_INTEGER(strength
)
34 PRT: FRMA (agent) inputport (integer)
37 void caosVM::v_PRT_FRMA() {
39 VM_PARAM_INTEGER(inputport
)
43 PRT: FROM (integer) inputport (integer)
46 void caosVM::v_PRT_FROM() {
48 VM_PARAM_INTEGER(inputport
)
52 PRT: INEW (command) id (integer) name (string) desc (string) x (integer) y (integer) msgnum (integer)
55 void caosVM::c_PRT_INEW() {
57 VM_PARAM_INTEGER(msgnum
)
69 void caosVM::v_PRT_ITOT() {
74 PRT: IZAP (command) id (integer)
77 void caosVM::c_PRT_IZAP() {
83 PRT: JOIN (command) source (agent) outputport (integer) dest (agent) inputport (integer)
86 void caosVM::c_PRT_JOIN() {
88 VM_PARAM_INTEGER(inputport
)
90 VM_PARAM_INTEGER(outputport
)
91 VM_PARAM_AGENT(source
)
95 PRT: KRAK (command) agent (agent) in_or_out (integer) port (integer)
98 void caosVM::c_PRT_KRAK() {
100 VM_PARAM_INTEGER(port
)
101 VM_PARAM_INTEGER(in_or_out
)
102 VM_PARAM_AGENT(agent
)
106 PRT: NAME (string) agent (agent) in_or_out (integer) port (integer)
109 void caosVM::v_PRT_NAME() {
111 VM_PARAM_INTEGER(port
)
112 VM_PARAM_INTEGER(in_or_out
)
113 VM_PARAM_AGENT(agent
)
117 PRT: ONEW (command) id (integer) name (string) desc (string) x (integer) y (integer)
120 void caosVM::c_PRT_ONEW() {
124 VM_PARAM_STRING(desc
)
125 VM_PARAM_STRING(name
)
133 void caosVM::v_PRT_OTOT() {
138 PRT: OZAP (command) id (integer)
141 void caosVM::c_PRT_OZAP() {
147 PRT: SEND (command) id (integer) data (anything)
150 void caosVM::c_PRT_SEND() { // TODO