Decouple <vector>
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
#include "PlayerOptions.h"
|
||||
#include "PlayerState.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
ActiveAttackList::ActiveAttackList()
|
||||
{
|
||||
}
|
||||
@@ -16,14 +18,14 @@ void ActiveAttackList::Init( const PlayerState* pPlayerState )
|
||||
m_pPlayerState = pPlayerState;
|
||||
}
|
||||
|
||||
void ActiveAttackList::Update( float fDelta )
|
||||
void ActiveAttackList::Update( float fDelta )
|
||||
{
|
||||
bool bTimeToRefresh =
|
||||
bool bTimeToRefresh =
|
||||
IsFirstUpdate() || // check this before running Actor::Update()
|
||||
m_pPlayerState->m_bAttackBeganThisUpdate ||
|
||||
m_pPlayerState->m_bAttackEndedThisUpdate;
|
||||
|
||||
BitmapText::Update( fDelta );
|
||||
BitmapText::Update( fDelta );
|
||||
|
||||
if( bTimeToRefresh )
|
||||
Refresh();
|
||||
@@ -56,7 +58,7 @@ void ActiveAttackList::Refresh()
|
||||
/*
|
||||
* (c) 2004 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
|
||||
@@ -66,7 +68,7 @@ void ActiveAttackList::Refresh()
|
||||
* 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
|
||||
|
||||
Reference in New Issue
Block a user