91 lines
2.6 KiB
C++
91 lines
2.6 KiB
C++
//=============================================================================
|
|
// Copyright (C) 2002 Radical Entertainment Ltd. All rights reserved.
|
|
//
|
|
// File: Playerdrawable.cpp
|
|
//
|
|
// Description: Implement PlayerDrawable
|
|
//
|
|
// History: 23/05/2002 + Created -- NAME
|
|
//
|
|
//=============================================================================
|
|
|
|
//========================================
|
|
// System Includes
|
|
//========================================
|
|
// Foundation Tech
|
|
#include <raddebug.hpp>
|
|
|
|
//========================================
|
|
// Project Includes
|
|
//========================================
|
|
|
|
#include <presentation/playerdrawable.h>
|
|
#include <presentation/animplayer.h>
|
|
#include <render/rendermanager/rendermanager.h>
|
|
|
|
//******************************************************************************
|
|
//
|
|
// Global Data, Local Data, Local Classes
|
|
//
|
|
//******************************************************************************
|
|
|
|
//******************************************************************************
|
|
//
|
|
// Public Member Functions
|
|
//
|
|
//******************************************************************************
|
|
|
|
//==============================================================================
|
|
// PlayerDrawable::PlayerDrawable
|
|
//==============================================================================
|
|
// Description: Constructor.
|
|
//
|
|
// Parameters: None.
|
|
//
|
|
// Return: N/A.
|
|
//
|
|
//==============================================================================
|
|
PlayerDrawable::PlayerDrawable() :
|
|
mpPlayer( NULL )
|
|
{
|
|
}
|
|
|
|
//==============================================================================
|
|
// PlayerDrawable::~PlayerDrawable
|
|
//==============================================================================
|
|
// Description: Destructor.
|
|
//
|
|
// Parameters: None.
|
|
//
|
|
// Return: N/A.
|
|
//
|
|
//==============================================================================
|
|
PlayerDrawable::~PlayerDrawable()
|
|
{
|
|
|
|
}
|
|
|
|
//=============================================================================
|
|
// PlayerDrawable::Display
|
|
//=============================================================================
|
|
// Description: Comment
|
|
//
|
|
// Parameters: ()
|
|
//
|
|
// Return: void
|
|
//
|
|
//=============================================================================
|
|
void PlayerDrawable::Display()
|
|
{
|
|
if(mpPlayer != NULL)
|
|
{
|
|
mpPlayer->Render();
|
|
}
|
|
}
|
|
|
|
//******************************************************************************
|
|
//
|
|
// Private Member Functions
|
|
//
|
|
//******************************************************************************
|