123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- /*-------------------------------------------------------------------------
- * \src\Lobby\MessagesAll.h
- *
- * Messages that pass over more than one session
- *
- * Owner:
- *
- * Copyright 1986-2000 Microsoft Corporation, All Rights Reserved
- *-----------------------------------------------------------------------*/
- #ifndef _MESSAGES_ALL_
- #define _MESSAGES_ALL_
- #include "MessageCore.h"
- /*
- *************************************************
- MESSAGES START HERE
- Messages range for this file is 301 - 320
- *************************************************
- */
- DEFINE_FEDMSG(LS, LOBBYMISSIONINFO, 301)
- FM_VAR_ITEM(szGameName);
- FM_VAR_ITEM(rgSquadIDs);
- FM_VAR_ITEM(szGameDetailsFiles);
- DWORD dwCookie; // how the mission is identified on the lobby
- unsigned dwStartTime;
- short nMinRank;
- short nMaxRank;
- unsigned nNumPlayers : 11;
- unsigned nMaxPlayersPerGame : 11;
- unsigned nMinPlayersPerTeam : 8;
- unsigned nMaxPlayersPerTeam : 8;
- unsigned nTeams : 3;
- bool fCountdownStarted : 1;
- bool fInProgress : 1;
- bool fMSArena : 1;
- bool fScoresCount : 1;
- bool fInvulnerableStations : 1;
- bool fAllowDevelopments : 1;
- bool fLimitedLives : 1;
- bool fConquest : 1;
- bool fDeathMatch : 1;
- bool fCountdown : 1;
- bool fProsperity : 1;
- bool fArtifacts : 1;
- bool fFlags : 1;
- bool fTerritorial : 1;
- bool fGuaranteedSlotsAvailable : 1;
- bool fAnySlotsAvailable : 1;
- bool fSquadGame : 1;
- bool fEjectPods : 1;
- END_FEDMSG
- DEFINE_FEDMSG(LS, MISSION_GONE, 302)
- DWORD dwCookie;
- END_FEDMSG
- #ifndef SquadID
- typedef int SquadID;
- #endif
- class SquadMembership
- {
- public:
- SquadID m_squadID;
- char m_szSquadName[c_cbName];
- bool m_fIsLeader : 1;
- bool m_fIsAssistantLeader : 1;
- SquadMembership() {} // creator beware--uninitialized values (but this is intentional for performance in allocating arrays that will be filled in)
- SquadMembership(SquadID squadID, const char *szSquadName, bool fIsLeader, bool fIsAssistantLeader) :
- m_squadID(squadID),
- m_fIsLeader(fIsLeader),
- m_fIsAssistantLeader(fIsAssistantLeader)
- {
- assert(!(m_fIsLeader && m_fIsAssistantLeader));
- assert(strlen(szSquadName) < c_cbName);
- Strcpy(m_szSquadName, szSquadName);
- };
-
- const SquadID GetID() const { return m_squadID; };
- const char* GetName() const { return m_szSquadName; };
- bool GetIsLeader() const { return m_fIsLeader; };
- bool GetIsAssistantLeader() const { return m_fIsAssistantLeader; };
- };
- typedef Slist_utl<SquadMembership*> SquadMembershipList;
- typedef Slink_utl<SquadMembership*> SquadMembershipLink;
- DEFINE_FEDMSG(LS, SQUAD_MEMBERSHIPS, 303)
- FM_VAR_ITEM(squadMemberships); // an array of SquadMembership structures
- int cSquadMemberships;
- END_FEDMSG
- #endif // _MESSAGES_LS_
|