1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00
psyced/world/net/treenode.c

44 lines
607 B
C
Raw Normal View History

// $Id: treenode.c,v 1.7 2005/03/14 13:30:46 lynx Exp $
#include <net.h>
volatile mixed value;
volatile object left, right;
getValue() {
unless (clonep(ME)) return;
return value;
}
setValue(x) {
unless (clonep(ME)) return;
value = x;
}
getLeft() {
unless (clonep(ME)) return;
return left;
}
setLeft(x) {
unless (clonep(ME)) return;
left = x;
}
getRight() {
unless (clonep(ME)) return;
return right;
}
setRight(x) {
unless (clonep(ME)) return;
right = x;
}
load() {
return ME;
}
// in case you didnt guess so far,
// this file is a joke really..