SBSPSS/source/player/player.cpp

50 lines
1.2 KiB
C++
Raw Normal View History

2001-01-09 21:38:20 +01:00
/**************/
/*** Player ***/
/**************/
#include "system\global.h"
#include "Game\Thing.h"
2001-01-12 23:40:39 +01:00
#include "Gfx\Skel.h"
#include "gfx\anim.h"
2001-01-09 21:38:20 +01:00
#include "Player\Player.h"
2001-01-12 23:40:39 +01:00
// to be removed
#include "fileio\fileio.h"
#include "utils\utils.h"
#include "gfx\tpage.h"
#include "gfx\prim.h"
2001-01-09 21:38:20 +01:00
/*****************************************************************************/
2001-01-12 23:40:39 +01:00
/*****************************************************************************/
/*****************************************************************************/
CPlayer::CPlayer()
2001-01-09 21:38:20 +01:00
{
2001-01-12 23:40:39 +01:00
SetRenderObj(&Skel);
};
2001-01-09 21:38:20 +01:00
/*****************************************************************************/
2001-01-12 23:40:39 +01:00
CPlayer::~CPlayer()
2001-01-09 21:38:20 +01:00
{
}
/*****************************************************************************/
2001-01-12 23:40:39 +01:00
void CPlayer::init()
2001-01-09 21:38:20 +01:00
{
2001-01-12 23:40:39 +01:00
sActor3dHdr *Hdr=Skel.Load(ACTORS_SPONGEBOB_A3D);
Skel.Init(Hdr);
TPLoadTex(ACTORS_SPONGEBOB_TEX);
Skel.setAnimDatabase(CAnimDB::GetPlayerAnimBank());
2001-01-09 21:38:20 +01:00
}
/*****************************************************************************/
2001-01-12 23:40:39 +01:00
void CPlayer::shutdown()
2001-01-09 21:38:20 +01:00
{
}
/*****************************************************************************/
2001-01-12 23:40:39 +01:00
void CPlayer::Animate()
{
Skel.Animate(this);
}