TURRET.CPP 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. /*
  2. ** Command & Conquer Red Alert(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /* $Header: F:\projects\c&c0\vcs\code\turret.cpv 3.1 13 Mar 1996 09:49:34 JOE_BOSTIC $ */
  19. /***********************************************************************************************
  20. *** C O N F I D E N T I A L --- W E S T W O O D S T U D I O S ***
  21. ***********************************************************************************************
  22. * *
  23. * Project Name : Command & Conquer *
  24. * *
  25. * File Name : TURRET.CPP *
  26. * *
  27. * Programmer : Joe L. Bostic *
  28. * *
  29. * Start Date : April 25, 1994 *
  30. * *
  31. * Last Update : August 13, 1995 [JLB] *
  32. * *
  33. *---------------------------------------------------------------------------------------------*
  34. * Functions: *
  35. * TurretClass::AI -- Handles the reloading of the turret weapon. *
  36. * TurretClass::Can_Fire -- Determines if turret can fire upon target. *
  37. * TurretClass::Debug_Dump -- Debug printing of turret values. *
  38. * TurretClass::Fire_At -- Try to fire upon the target specified. *
  39. * TurretClass::Fire_Coord -- Determines the coorindate that projectile would appear. *
  40. * TurretClass::Fire_Direction -- Determines the directinon of firing. *
  41. * TurretClass::Ok_To_Move -- Queries whether the vehicle can move. *
  42. * TurretClass::TurretClass -- Normal constructor for the turret class. *
  43. * TurretClass::TurretClass -- The default constructor for turret class objects. *
  44. * TurretClass::Unlimbo -- Unlimboes turret object. *
  45. * TurretClass::~TurretClass -- Default destructor for turret class objects. *
  46. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  47. #include "function.h"
  48. #include "turret.h"
  49. /***********************************************************************************************
  50. * TurretClass::~TurretClass -- Default destructor for turret class objects. *
  51. * *
  52. * This is the default destructor for turret class objects. It does nothing. *
  53. * *
  54. * INPUT: none *
  55. * *
  56. * OUTPUT: none *
  57. * *
  58. * WARNINGS: none *
  59. * *
  60. * HISTORY: *
  61. * 08/13/1995 JLB : Created. *
  62. *=============================================================================================*/
  63. TurretClass::~TurretClass(void)
  64. {
  65. }
  66. /***********************************************************************************************
  67. * TurretClass::TurretClass -- The default constructor for turret class objects. *
  68. * *
  69. * This is the default constructor for turret class objects. It does nothing. *
  70. * *
  71. * INPUT: none *
  72. * *
  73. * OUTPUT: none *
  74. * *
  75. * WARNINGS: none *
  76. * *
  77. * HISTORY: *
  78. * 08/13/1995 JLB : Created. *
  79. *=============================================================================================*/
  80. TurretClass::TurretClass(void)
  81. {
  82. }
  83. /***********************************************************************************************
  84. * TurretClass::TurretClass -- Normal constructor for the turret class. *
  85. * *
  86. * This is the normal constructor for the turret class. It merely sets the turret up to *
  87. * face north. *
  88. * *
  89. * INPUT: classid -- The type id for this particular unit. *
  90. * *
  91. * house -- The house that this unit will belong to. *
  92. * *
  93. * OUTPUT: none *
  94. * *
  95. * WARNINGS: none *
  96. * *
  97. * HISTORY: *
  98. * 02/02/1995 JLB : Created. *
  99. *=============================================================================================*/
  100. TurretClass::TurretClass(UnitType classid, HousesType house) :
  101. DriveClass(classid, house)
  102. {
  103. }