mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
- Catcher comes down to grab your selection. (Needs per-player arrows, as discussed last night.) - Catcher has more accurate rainbow cycle. Just looks a bit cleaner. - Vote thumbnails now have outlines & dims, instead of transparency. - Put voting roulette code into its own struct. - Sped up voting roulette. (although it's not visible currently) - Made modify vote stricter (kick hacked clients trying to do funky stuff) - Added VOTE_TIME_WAIT_FOR_VOTE define. If enabled, voting timer will only start when any player gives a vote. Currently disable because it'd be exploitable without mid-game vote joining.
40 lines
988 B
C
40 lines
988 B
C
// DR. ROBOTNIK'S RING RACERS
|
|
//-----------------------------------------------------------------------------
|
|
// Copyright (C) by Sally "TehRealSalt" Cochenour
|
|
// Copyright (C) by Kart Krew
|
|
//
|
|
// This program is free software distributed under the
|
|
// terms of the GNU General Public License, version 2.
|
|
// See the 'LICENSE' file for more details.
|
|
//-----------------------------------------------------------------------------
|
|
/// \file k_vote.h
|
|
/// \brief Voting screen
|
|
|
|
#ifndef __K_VOTE_H__
|
|
#define __K_VOTE_H__
|
|
|
|
#include "doomstat.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define VOTE_NUM_LEVELS (4)
|
|
#define VOTE_NOT_PICKED (-1)
|
|
|
|
#define VOTE_MOD_ENCORE (0x01)
|
|
|
|
boolean Y_PlayerIDCanVote(const UINT8 playerId);
|
|
void Y_SetPlayersVote(const UINT8 playerId, SINT8 vote);
|
|
|
|
void Y_VoteDrawer(void);
|
|
void Y_VoteTicker(void);
|
|
void Y_StartVote(void);
|
|
void Y_EndVote(void);
|
|
void Y_SetupVoteFinish(SINT8 pick, SINT8 level);
|
|
|
|
#ifdef __cplusplus
|
|
} // extern "C"
|
|
#endif
|
|
|
|
#endif // __K_VOTE_H__
|