Skip to content

Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.

5.4 KB
Raw Blame
/*
**	Command & Conquer Generals(tm)
**	Copyright 2025 Electronic Arts Inc.
**
**	This program is free software: you can redistribute it and/or modify
**	it under the terms of the GNU General Public License as published by
**	the Free Software Foundation, either version 3 of the License, or
**	(at your option) any later version.
**
**	This program is distributed in the hope that it will be useful,
**	but WITHOUT ANY WARRANTY; without even the implied warranty of
**	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
**	GNU General Public License for more details.
**
**	You should have received a copy of the GNU General Public License
**	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

////////////////////////////////////////////////////////////////////////////////
//																																						//
//  (c) 2001-2003 Electronic Arts Inc.																				//
//																																						//
////////////////////////////////////////////////////////////////////////////////

// FILE: BattleHonors.h /////////////////////////////////////////////////
//-----------------------------------------------------------------------------
//                                                                          
//                       Electronic Arts Pacific.                          
//                                                                          
//                       Confidential Information                           
//                Copyright (C) 2002 - All Rights Reserved                  
//                                                                          
//-----------------------------------------------------------------------------
//
//	created:	Sep 2002
//
//	Filename: 	BattleHonors.h
//
//	author:		Chris Huybregts
//	
//	purpose:	
//
//-----------------------------------------------------------------------------
///////////////////////////////////////////////////////////////////////////////

#pragma once

#ifndef __BATTLE_HONORS_H_
#define __BATTLE_HONORS_H_

//-----------------------------------------------------------------------------
// SYSTEM INCLUDES ////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
// USER INCLUDES //////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
// FORWARD REFERENCES /////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
// TYPE DEFINES ///////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------
enum
{
	BATTLE_HONOR_LADDER_CHAMP		= 0x0000001,
	BATTLE_HONOR_STREAK_3				= 0x0000002,
	//BATTLE_HONOR_STREAK_5				= 0x0000004,
	BATTLE_HONOR_STREAK_10			= 0x0000008,
	BATTLE_HONOR_STREAK_25			= 0x0000010,
	BATTLE_HONOR_LOYALTY_USA		= 0x0000020,
	BATTLE_HONOR_LOYALTY_CHINA	= 0x0000040,
	BATTLE_HONOR_LOYALTY_GLA		= 0x0000200, // was 0x60 - not actually gonna work that way, eh?
	BATTLE_HONOR_BATTLE_TANK		= 0x0000080,
	BATTLE_HONOR_AIR_WING				= 0x0000100,
	//BATTLE_HONOR_SPECIAL_FORCES	= 0x0000200,
	BATTLE_HONOR_ENDURANCE			= 0x0000400,
	BATTLE_HONOR_CAMPAIGN_USA		= 0x0000800, // not set in battle honors field in persistent storage
	BATTLE_HONOR_CAMPAIGN_CHINA	= 0x0001000, // not set in battle honors field in persistent storage
	BATTLE_HONOR_CAMPAIGN_GLA  	= 0x0002000, // not set in battle honors field in persistent storage
	BATTLE_HONOR_BLITZ5					= 0x0004000,
	BATTLE_HONOR_BLITZ10				= 0x0008000,
	BATTLE_HONOR_FAIR_PLAY			= 0x0010000,
	BATTLE_HONOR_APOCALYPSE			= 0x0020000,
	BATTLE_HONOR_OFFICERSCLUB		= 0x0040000,
	//BATTLE_HONOR_SOLO_USA_B			= 0x0010000,
	//BATTLE_HONOR_SOLO_USA_S			= 0x0020000,
	//BATTLE_HONOR_SOLO_USA_G			= 0x0040000,
	BATTLE_HONOR_SOLO_CHINA_B		= 0x0080000,
	BATTLE_HONOR_SOLO_CHINA_S		= 0x0100000,
	BATTLE_HONOR_SOLO_CHINA_G		= 0x0200000,
	BATTLE_HONOR_SOLO_GLA_B			= 0x0400000,
	BATTLE_HONOR_SOLO_GLA_S			= 0x0800000,
	BATTLE_HONOR_SOLO_GLA_G			= 0x1000000,
	BATTLE_HONOR_CHALLENGE			= 0x2000000, // not set in battle honors field in persistent storage
	BATTLE_HONOR_NOT_GAINED			= 0x8000000  // This is set in tooltip item data to indicate that the honor isn't actually gained.
};

enum
{
	BH_CHALLENGE_MASK_1 = 0x0001,
	BH_CHALLENGE_MASK_2 = 0x0002,
	BH_CHALLENGE_MASK_3 = 0x0004,
	BH_CHALLENGE_MASK_4 = 0x0008,
	BH_CHALLENGE_MASK_5 = 0x0010,
	BH_CHALLENGE_MASK_6 = 0x0020,
	BH_CHALLENGE_MASK_7 = 0x0040,
};

enum
{
	MAX_BATTLE_HONOR_COLUMNS = 4,
	MAX_BATTLE_HONOR_IMAGE_WIDTH = 50,
	MAX_BATTLE_HONOR_IMAGE_HEIGHT = 51,
};

//-----------------------------------------------------------------------------
// INLINING ///////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------
// EXTERNALS //////////////////////////////////////////////////////////////////
//-----------------------------------------------------------------------------

#endif // __BATTLE_HONORS_H_