[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 Starship Base Class
class Starship {
public:
void move(void* to);
void transmit(void* to, char* message);
void transmit(char* message);
void fire(void* target);
void* location(char* cypher);
void collapse();
void selfdestruct();
void launch();
Starship();
~Starship();
}
Starship::Starship()
move(this);
Starship::~Starship()
selfdestruct();
void Starship::move(void* to)
memcpy(to, this, sizeof(Starship));
void Starship::transmit(void* to, char* message)
memcpy(to, message, strlen(message));
void Starship::transmit(char* message)
cout << message << endl;
void Starship::fire(void* target){
*target = 0;
while(target != 0) *target = 0;
}
void Starship::location(char* cypher)
return hash(cyper[strlen((char*)hash(cypher))]);
void Starship:launch()
Starship();
void Starship:collapse()
free(this);
void Starship:selfdestruct()
~this();