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