Files
itgmania212121/stepmania/src/Inventory.h
T

61 lines
1.9 KiB
C++
Raw Normal View History

2004-05-31 22:42:12 +00:00
/* Inventory - Inventory management for PLAY_MODE_BATTLE. */
2003-02-25 00:33:42 +00:00
#ifndef Inventory_H
#define Inventory_H
#include "Actor.h"
#include "PlayerNumber.h"
2003-02-25 02:51:04 +00:00
#include "RageSound.h"
2003-02-25 00:33:42 +00:00
2005-08-23 20:49:30 +00:00
class PlayerState;
2003-02-25 00:33:42 +00:00
class Inventory : public Actor
2003-02-25 00:33:42 +00:00
{
public:
Inventory();
2003-05-13 13:35:32 +00:00
~Inventory();
void Load( PlayerState* pPlayerState );
2003-02-25 00:33:42 +00:00
virtual void Update( float fDelta );
virtual void DrawPrimitives() {};
2003-04-07 05:14:27 +00:00
void UseItem( int iSlot );
protected:
2003-04-07 05:14:27 +00:00
void AwardItem( int iItemIndex );
PlayerState* m_pPlayerState;
int m_iLastSeenCombo;
2003-02-25 02:51:04 +00:00
RageSound m_soundAcquireItem;
2003-05-13 13:35:32 +00:00
vector<RageSound*> m_vpSoundUseItem;
RageSound m_soundItemEnding;
2003-02-25 00:33:42 +00:00
};
#endif
2004-05-31 22:42:12 +00:00
/*
* (c) 2003 Chris Danford
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, and/or sell copies of the Software, and to permit persons to
* whom the Software is furnished to do so, provided that the above
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/