2002-11-16 08:07:38 +00:00
|
|
|
#ifndef STYLEINPUT_H
|
|
|
|
|
#define STYLEINPUT_H
|
2002-04-16 17:31:00 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
Class: StyleInput
|
|
|
|
|
|
|
|
|
|
Desc: An input event specific to a style that is defined by a player number and the player's note column.
|
|
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
2002-04-16 17:31:00 +00:00
|
|
|
Chris Danford
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
2003-02-26 00:20:00 +00:00
|
|
|
|
|
|
|
|
#include "PlayerNumber.h"
|
|
|
|
|
|
2002-04-16 17:31:00 +00:00
|
|
|
|
|
|
|
|
struct StyleInput
|
|
|
|
|
{
|
2002-07-31 19:40:40 +00:00
|
|
|
PlayerNumber player;
|
|
|
|
|
int col;
|
|
|
|
|
|
|
|
|
|
StyleInput() { MakeInvalid(); };
|
2002-09-04 03:49:08 +00:00
|
|
|
StyleInput( PlayerNumber pn, int c ) { player = pn; col = c; };
|
2002-04-16 17:31:00 +00:00
|
|
|
bool operator==( const StyleInput &other ) { return player == other.player && col == other.col; };
|
|
|
|
|
|
2002-07-31 19:40:40 +00:00
|
|
|
inline bool IsValid() const { return player != PLAYER_INVALID; };
|
|
|
|
|
inline void MakeInvalid() { player = PLAYER_INVALID; col = -1; };
|
2002-11-16 08:07:38 +00:00
|
|
|
};
|
|
|
|
|
#endif
|