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

ReceptorArrow.h

Go to the documentation of this file.
00001 /* Class: ReceptorArrow - A gray arrow that "receives" the note arrows. */ 00002 00003 #ifndef RECEPTOR_ARROW_H 00004 #define RECEPTOR_ARROW_H 00005 00006 #include "ActorFrame.h" 00007 #include "ActorUtil.h" 00008 #include "PlayerNumber.h" 00009 #include "GameConstantsAndTypes.h" 00010 00011 struct PlayerState; 00012 00013 class ReceptorArrow : public ActorFrame 00014 { 00015 public: 00016 ReceptorArrow(); 00017 bool Load( CString NoteSkin, const PlayerState* pPlayerState, int iColNo ); 00018 00019 virtual void DrawPrimitives(); 00020 virtual void Update( float fDeltaTime ); 00021 void Step( TapNoteScore score ); 00022 void SetPressed() { m_bIsPressed = true; }; 00023 private: 00024 00025 const PlayerState* m_pPlayerState; 00026 int m_iColNo; 00027 00028 AutoActor m_pReceptorWaiting; 00029 AutoActor m_pReceptorGo; 00030 apActorCommands m_sScoreCommand[NUM_TAP_NOTE_SCORES]; 00031 00032 AutoActor m_pPressBlock; 00033 bool m_bIsPressed; 00034 }; 00035 00036 #endif 00037 00038 /* 00039 * (c) 2001-2004 Ben Nordstrom, Chris Danford 00040 * All rights reserved. 00041 * 00042 * Permission is hereby granted, free of charge, to any person obtaining a 00043 * copy of this software and associated documentation files (the 00044 * "Software"), to deal in the Software without restriction, including 00045 * without limitation the rights to use, copy, modify, merge, publish, 00046 * distribute, and/or sell copies of the Software, and to permit persons to 00047 * whom the Software is furnished to do so, provided that the above 00048 * copyright notice(s) and this permission notice appear in all copies of 00049 * the Software and that both the above copyright notice(s) and this 00050 * permission notice appear in supporting documentation. 00051 * 00052 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00053 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00054 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00055 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00056 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00057 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00058 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00059 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00060 * PERFORMANCE OF THIS SOFTWARE. 00061 */

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