TURRET.CPP 8.1 KB

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