diff --git a/stepmania/src/ArrowBackdrop.cpp b/stepmania/src/ArrowBackdrop.cpp new file mode 100644 index 0000000000..6ab6284aeb --- /dev/null +++ b/stepmania/src/ArrowBackdrop.cpp @@ -0,0 +1,16 @@ +#include "global.h" +#include "ArrowBackdrop.h" +#include "GameState.h" +#include "NoteFieldPositioning.h" + +void ArrowBackdrop::BeginDraw() +{ + BGAnimation::BeginDraw(); + GAMESTATE->m_Position->BeginDrawBackdrop(m_PlayerNumber); +} + +void ArrowBackdrop::EndDraw() +{ + GAMESTATE->m_Position->EndDrawBackdrop(m_PlayerNumber); + BGAnimation::EndDraw(); +} diff --git a/stepmania/src/ArrowBackdrop.h b/stepmania/src/ArrowBackdrop.h new file mode 100644 index 0000000000..5b87780936 --- /dev/null +++ b/stepmania/src/ArrowBackdrop.h @@ -0,0 +1,17 @@ +#ifndef ARROW_BACKDROP_H +#define ARROW_BACKDROP_H + +#include "BGAnimation.h" +#include "PlayerNumber.h" + +class ArrowBackdrop: public BGAnimation +{ + PlayerNumber m_PlayerNumber; + +public: + virtual void BeginDraw(); // pushes transform onto world matrix stack + virtual void EndDraw(); // pops transform from world matrix stack + void SetPlayer( PlayerNumber pn ) { m_PlayerNumber = pn; } +}; + +#endif diff --git a/stepmania/src/Makefile.am b/stepmania/src/Makefile.am index e984bb9af0..e9aee327d7 100644 --- a/stepmania/src/Makefile.am +++ b/stepmania/src/Makefile.am @@ -49,7 +49,7 @@ PlayerOptions.cpp PlayerOptions.h RandomSample.cpp RandomSample.h Song.cpp song. SongOptions.cpp SongOptions.h StageStats.cpp StageStats.h StyleDef.cpp StyleDef.h StyleInput.h \ TitleSubstitution.cpp TitleSubstitution.h Inventory.cpp Inventory.h PlayerNumber.cpp PlayerNumber.h \ LyricsLoader.cpp LyricsLoader.h NoteFieldPositioning.cpp NoteFieldPositioning.h RaveHelper.cpp RaveHelper.h \ -PlayerAI.cpp PlayerAI.h Character.cpp Character.h +PlayerAI.cpp PlayerAI.h Character.cpp Character.h ArrowBackdrop.cpp ArrowBackdrop.h FileTypes = IniFile.cpp IniFile.h MsdFile.cpp MsdFile.h diff --git a/stepmania/src/StepMania.dsp b/stepmania/src/StepMania.dsp index 25a7a8a60e..2587949044 100644 --- a/stepmania/src/StepMania.dsp +++ b/stepmania/src/StepMania.dsp @@ -295,6 +295,14 @@ SOURCE=.\RageUtil.h # PROP Default_Filter "" # Begin Source File +SOURCE=.\ArrowBackdrop.cpp +# End Source File +# Begin Source File + +SOURCE=.\ArrowBackdrop.h +# End Source File +# Begin Source File + SOURCE=.\Character.cpp # End Source File # Begin Source File diff --git a/stepmania/src/StepMania.vcproj b/stepmania/src/StepMania.vcproj index 146d462fcb..500fa1f459 100644 --- a/stepmania/src/StepMania.vcproj +++ b/stepmania/src/StepMania.vcproj @@ -121,6 +121,7 @@ cl /Zl /nologo /c verstub.cpp /Fo$(IntDir)\ + + + +