[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.]
//The Battlecruiser Class
class Battlecruiser {
public:
void* shielding[25];
void lock(void *tar);
void fire();
void process(char* string);
protected:
void target;
Battlecruiser();
~Battlecruiser();
}
Battlecruiser::Battlecruiser()
for(int i=0; i<25; i++) shielding[i] = malloc(0);
Battlecruiser::~Battlecruiser()
for(int i=0; i<25; i++) free(shielding[i]);
void Battlecruiser::process(char* string)
poke(irq(001F), string);
void Battlecruiser::lock(void *tar)
target = tar;
void Battlecruiser::fire()
fire(target);