I think I'll make an interface called CakeI? that contains every method that the rest of my classes need, then make a robot Cake that extends CoopRobot, one CakePW? that extends PowerUpRobot?, and one CakeDM? that extends DeathMatchRobot?, all of them implementing CakeI?. This will allow me to keep the same code and add ifs when I want to handle the game options (using a getGameMode?() method in CakeI?) for all modes of Cake. I'll likely implement the same thing in Fractal soon before it gets too complicated so that I can do this easily with Fractal once it becomes melee. -- Vuen Sounds very complicated, but it seems like a good idea. You should be able to merge DMR and PUR quite easily. There is very little in PUR, all the complicated bits are in PowerUp?. -- Tango
|