inheritance.hpp 871 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #define saber_inheritence_template(class1,class2,class3)\
  2. class class1 :Wheeled_APC_F\
  3. {\
  4. class Turrets;\
  5. };\
  6. class class2 :class1 \
  7. {\
  8. class Turrets:Turrets\
  9. {\
  10. class MainTurret; \
  11. };\
  12. };\
  13. class class3:class2 \
  14. {\
  15. scope = 2; \
  16. class Turrets:Turrets\
  17. {\
  18. class MainTurret:MainTurret\
  19. {\
  20. };\
  21. };\
  22. };\
  23. //Command saber
  24. class Wheeled_APC_F;
  25. saber_inheritence_template(O_JM_TX130_base,O_O_JM_TX130_base,O_JM_TX130_1)
  26. saber_inheritence_template(O_JM_TX130m1_base,O_O_JM_TX130m1_base,O_JM_TX130m1_1)//saber
  27. saber_inheritence_template(O_JM_TX130m2_base,O_O_JM_TX130m2_base,O_JM_TX130m2_1)//super saber
  28. class O_O_JM_TX130r_base:O_JM_TX130_base
  29. {
  30. class Turrets:Turrets
  31. {
  32. class MainTurret;
  33. };
  34. };
  35. class O_JM_TX130r_1:O_O_JM_TX130r_base
  36. {
  37. class Turrets:Turrets
  38. {
  39. class MainTurret:MainTurret
  40. {
  41. };
  42. };
  43. };