Allow NoteField Board to be an AutoActor

NoteField board was already an AutoActor, but code was requiring it to
be a derivative of Sprite. Allow any ActorClass to be used.

NoteField could already be accessed from below, using GetParent() on the
NoteField Board. For ease of allowing the board to be used for player
specific purposes, make notefield an actual child of Player, so the
Board can be accessed per player from the top down.
This commit is contained in:
sigatrev
2014-05-02 17:01:38 -05:00
parent 2d9db97905
commit 0c62e5fb9e
2 changed files with 13 additions and 9 deletions
+1
View File
@@ -249,6 +249,7 @@ Player::Player( NoteData &nd, bool bVisibleParts ) : m_NoteData(nd)
{
m_pNoteField = new NoteField;
m_pNoteField->SetName( "NoteField" );
this->AddChild( m_pNoteField );
}
m_pJudgedRows = new JudgedRows;