Files
itgmania212121/stepmania/src/StyleInput.h
T
Chris Danford 22ef6c358b moved PlayerNumber into a separate header to reduce dependences on GameConstantsAndTypes.h
default mappings for menu buttons
items in battle now have a duration
fix VC6 compile errors
2003-02-26 00:20:00 +00:00

30 lines
854 B
C

#ifndef STYLEINPUT_H
#define STYLEINPUT_H
/*
-----------------------------------------------------------------------------
Class: StyleInput
Desc: An input event specific to a style that is defined by a player number and the player's note column.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "PlayerNumber.h"
struct StyleInput
{
PlayerNumber player;
int col;
StyleInput() { MakeInvalid(); };
StyleInput( PlayerNumber pn, int c ) { player = pn; col = c; };
bool operator==( const StyleInput &other ) { return player == other.player && col == other.col; };
inline bool IsValid() const { return player != PLAYER_INVALID; };
inline void MakeInvalid() { player = PLAYER_INVALID; col = -1; };
};
#endif