[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 Tick Star
class Tick_Star {
public:
void move(void* to);
void transmit(void* to, char* message);
void transmit(char* message);
void fire(void* target);
void* location(char* cypher);
void arc (int theta);
void forward (void);
protected:
int speed;
int curve;
Tick_Star();
~Tick_Star();
}
Tick_Star::Tick_Star()
memory = malloc(1000);
Tick_Star::~Tick_Star()
free(memory);
Tick_Star::move(void* to)
memcpy(to, this, sizeof(Tick_Star));
Tick_Star::transmit(void* to, char* message)
memcpy(to, message, strlen(message));
Tick_Star::transmit(char* message)
cout << message << endl;
Tick_Star::fire(void* target){
*target = 0;
while(target != 0) *target = 0;
}
Tick_Star::location(char* cypher)
return hash(cyper[strlen((char*)hash(cypher))]);
Tick_Star::arc(int theta)
curve += theta/abs(theta) * abs(theta - abs(curve)) + theta;
Tick_Star::forward(void)
move(this + speed);