This commit is contained in:
Charles 2001-06-14 16:07:48 +00:00
parent 4c93823479
commit f701f34dc4
25 changed files with 264 additions and 276 deletions

View file

@ -25,6 +25,25 @@
#include "game/game.h"
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
CEnemyAsSpriteProjectile *CEnemyAsSpriteProjectile::Create()
{
CEnemyAsSpriteProjectile *projectile;
projectile = (CEnemyAsSpriteProjectile*)CThingManager::GetThing(TYPE_PLAYERPROJECTILE,0);
if ( !projectile )
{
projectile = new ("player projectile") CEnemyAsSpriteProjectile;
}
ASSERT(projectile);
return( projectile );
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CEnemyAsSpriteProjectile::think( int _frames )
{
CPlayerProjectile::think( _frames );
@ -33,12 +52,16 @@ void CEnemyAsSpriteProjectile::think( int _frames )
m_rotation &= 4095;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CEnemyAsSpriteProjectile::setGraphic( int frame )
{
m_spriteFrame = frame;
m_rotation = 0;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CEnemyAsSpriteProjectile::setRGB( int R, int G, int B )
{
m_R = R;
@ -46,6 +69,8 @@ void CEnemyAsSpriteProjectile::setRGB( int R, int G, int B )
m_B = B;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CEnemyAsSpriteProjectile::render()
{
sFrameHdr *frameHdr;