Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

StyleInput.h

Go to the documentation of this file.
00001 /* StyleInput - An input event specific to a style that is defined by a player number and the player's note column. */ 00002 00003 #ifndef STYLEINPUT_H 00004 #define STYLEINPUT_H 00005 00006 #include "PlayerNumber.h" 00007 00008 00009 struct StyleInput 00010 { 00011 PlayerNumber player; 00012 int col; 00013 00014 StyleInput() { MakeInvalid(); }; 00015 StyleInput( PlayerNumber pn, int c ) { player = pn; col = c; }; 00016 bool operator==( const StyleInput &other ) { return player == other.player && col == other.col; }; 00017 00018 inline bool IsValid() const { return player != PLAYER_INVALID; }; 00019 inline void MakeInvalid() { player = PLAYER_INVALID; col = -1; }; 00020 }; 00021 00022 #endif 00023 00024 /* 00025 * (c) 2001-2002 Chris Danford 00026 * All rights reserved. 00027 * 00028 * Permission is hereby granted, free of charge, to any person obtaining a 00029 * copy of this software and associated documentation files (the 00030 * "Software"), to deal in the Software without restriction, including 00031 * without limitation the rights to use, copy, modify, merge, publish, 00032 * distribute, and/or sell copies of the Software, and to permit persons to 00033 * whom the Software is furnished to do so, provided that the above 00034 * copyright notice(s) and this permission notice appear in all copies of 00035 * the Software and that both the above copyright notice(s) and this 00036 * permission notice appear in supporting documentation. 00037 * 00038 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00039 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00040 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00041 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00042 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00043 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00044 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00045 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00046 * PERFORMANCE OF THIS SOFTWARE. 00047 */

Generated on Thu Jan 27 20:57:34 2005 for StepMania by doxygen 1.3.7