[Note: Coded by Sam Schreiber, who doesn't have far* too much time on his hands now that the school year has started. This is a C++ parody of Star Wars, in case you can't figure that out.]
[Note: Specifically, these are Pointer Wars Action Classes. They are C++ parodies of the Star Wars action figures.]
//Binky
class Binky {
public:
char* irq;
protected:
void* memory;
Binky();
~Binky();
void move(void* to);
void transmit(void* to, char* message);
void transmit(char* message);
void fire(void* target);
void* location(char* cypher);
}
Binky::Binky()
memory = malloc(1000);
Binky::~Binky()
free(memory);
Agent::move(void* to)
memcpy(to, this, sizeof(Agent));
Binky::transmit(void* to, char* message)
memcpy(to, message, strlen(message));
Binky::transmit(char* message)
cout << message << endl;
Binky::fire(void* target)
*target = rand();
Binky::location(char* cypher)
return hash(cyper[strlen((char*)hash(cypher))]);