add ArrowBackdrop

This commit is contained in:
Glenn Maynard
2003-04-14 22:21:09 +00:00
parent 44598724ce
commit 3d90301e70
5 changed files with 49 additions and 1 deletions
+16
View File
@@ -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();
}
+17
View File
@@ -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
+1 -1
View File
@@ -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
+8
View File
@@ -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
+7
View File
@@ -121,6 +121,7 @@ cl /Zl /nologo /c verstub.cpp /Fo$(IntDir)\
<Tool
Name="VCLinkerTool"
AdditionalOptions="/MACHINE:I386 $(intdir)\verstub.obj
/FIXED:no
"
OutputFile=".\../StepMania.exe"
LinkIncremental="1"
@@ -1241,6 +1242,12 @@ cl /Zl /nologo /c verstub.cpp /Fo$(IntDir)\
<File
RelativePath="ActiveItemList.h">
</File>
<File
RelativePath="ArrowBackdrop.cpp">
</File>
<File
RelativePath="ArrowBackdrop.h">
</File>
<File
RelativePath=".\ArrowEffects.cpp">
</File>