bind
This commit is contained in:
@@ -3,7 +3,10 @@
|
|||||||
#include "ThemeManager.h"
|
#include "ThemeManager.h"
|
||||||
#include "MemoryCardManager.h"
|
#include "MemoryCardManager.h"
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
|
#include "XmlFile.h"
|
||||||
|
#include "ActorUtil.h"
|
||||||
|
|
||||||
|
REGISTER_ACTOR_CLASS( MemoryCardDisplay )
|
||||||
|
|
||||||
MemoryCardDisplay::MemoryCardDisplay()
|
MemoryCardDisplay::MemoryCardDisplay()
|
||||||
{
|
{
|
||||||
@@ -25,6 +28,16 @@ void MemoryCardDisplay::Load( PlayerNumber pn )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MemoryCardDisplay::LoadFromNode( const CString& sDir, const XNode* pNode )
|
||||||
|
{
|
||||||
|
PlayerNumber pn;
|
||||||
|
pNode->GetAttrValue("PlayerNumber", (int&) pn );
|
||||||
|
|
||||||
|
Load( pn );
|
||||||
|
|
||||||
|
ActorFrame::LoadFromNode( sDir, pNode );
|
||||||
|
}
|
||||||
|
|
||||||
void MemoryCardDisplay::Update( float fDelta )
|
void MemoryCardDisplay::Update( float fDelta )
|
||||||
{
|
{
|
||||||
MemoryCardState newMcs = MEMCARDMAN->GetCardState(m_PlayerNumber);
|
MemoryCardState newMcs = MEMCARDMAN->GetCardState(m_PlayerNumber);
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ class MemoryCardDisplay : public ActorFrame
|
|||||||
public:
|
public:
|
||||||
MemoryCardDisplay();
|
MemoryCardDisplay();
|
||||||
void Load( PlayerNumber pn );
|
void Load( PlayerNumber pn );
|
||||||
|
void LoadFromNode( const CString& sDir, const XNode* pNode );
|
||||||
void Update( float fDelta );
|
void Update( float fDelta );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
Reference in New Issue
Block a user