Middle Europe Productions Library  alpha 1.3.3
Public Member Functions | Public Attributes | List of all members
MEP::Resource Struct Reference

A deffinition of an individual resource. More...

#include <ResourceManager.h>

Inheritance diagram for MEP::Resource:
MEP::NonCopyable

Public Member Functions

 Resource (const ResourceType type, const U_int32 ID, const std::string &name, unsigned int nofFrames=1, bool transparency=false)
 
 Resource (const ResourceType type, const U_int32 ID, const U_int32 group, const std::string &name, unsigned int nofFrames=1, bool transparency=false)
 
 Resource (const U_int32 ID, const std::string &name, unsigned int nofFrames=1, bool transparency=false)
 
 Resource (const U_int32 ID, const U_int32 group, const std::string &name, unsigned int nofFrames=1, bool transparency=false)
 
 Resource (const U_int32 ID, std::list< sf::Image > &images, const std::string &name, bool transparency=false)
 
 Resource (const U_int32 ID, const U_int32 group, std::list< sf::Image > &images, const std::string &name, bool transparency=false)
 

Public Attributes

const U_int32 m_ID
 
const U_int32 m_group
 
const std::string m_name
 
ResourceType m_type
 
unsigned int m_nofFrames = 0
 
bool m_transparency = false
 
std::list< sf::Image > * m_array = nullptr
 

Additional Inherited Members

- Protected Member Functions inherited from MEP::NonCopyable
 NonCopyable ()=default
 
 ~NonCopyable ()=default
 

Detailed Description

A deffinition of an individual resource.

Constructor & Destructor Documentation

◆ Resource() [1/6]

MEP::Resource::Resource ( const ResourceType  type,
const U_int32  ID,
const std::string &  name,
unsigned int  nofFrames = 1,
bool  transparency = false 
)
inline

Resource contructor. It creates the font.

Parameters
[in]ID: An ID of a resource.
[in]name: Name of a resource.
[in]nofFrames: Number of textures. 1 by default.
[in]transparency: True if we want an object to generate alpha channel table. False by default.

◆ Resource() [2/6]

MEP::Resource::Resource ( const ResourceType  type,
const U_int32  ID,
const U_int32  group,
const std::string &  name,
unsigned int  nofFrames = 1,
bool  transparency = false 
)
inline

Resource contructor. It creates the font.

Parameters
[in]ID: An ID of a resource.
[in]name: Name of a resource.
[in]nofFrames: Number of textures. 1 by default.
[in]transparency: True if we want an object to generate alpha channel table. False by default.

◆ Resource() [3/6]

MEP::Resource::Resource ( const U_int32  ID,
const std::string &  name,
unsigned int  nofFrames = 1,
bool  transparency = false 
)
inline

Resource contructor. It is capable of creating Single and Multi resource.

Parameters
[in]ID: An ID of a resource.
[in]name: Name of a resource.
[in]nofFrames: Number of textures. 1 by default.
[in]transparency: True if we want an object to generate alpha channel table. False by default.

◆ Resource() [4/6]

MEP::Resource::Resource ( const U_int32  ID,
const U_int32  group,
const std::string &  name,
unsigned int  nofFrames = 1,
bool  transparency = false 
)
inline

Resource contructor. It is capable of creating Single and Multi resource.

Parameters
[in]ID: An ID of a resource.
[in]group: A group of a resource.
[in]name: Name of a resource.
[in]nofFrames: Number of textures. 1 by default.
[in]transparency: True if we want an object to generate alpha channel table. False by default.

◆ Resource() [5/6]

MEP::Resource::Resource ( const U_int32  ID,
std::list< sf::Image > &  images,
const std::string &  name,
bool  transparency = false 
)
inline

Resource contructor. It is capable of creating ImageArray resource.

Parameters
[in]ID: An ID of a resource.
[in]name: Name of a resource.
[in]nofFrames: Number of textures. 1 by default.
[in]transparency: True if we want an object to generate alpha channel table. False by default.

◆ Resource() [6/6]

MEP::Resource::Resource ( const U_int32  ID,
const U_int32  group,
std::list< sf::Image > &  images,
const std::string &  name,
bool  transparency = false 
)
inline

Resource contructor. It is capable of creating ImageArray resource.

Parameters
[in]ID: An ID of a resource.
[in]group: A group of a resource.
[in]name: Name of a resource.
[in]nofFrames: Number of textures. 1 by default.
[in]transparency: True if we want an object to generate alpha channel table. False by default.

Member Data Documentation

◆ m_array

std::list<sf::Image>* MEP::Resource::m_array = nullptr

◆ m_group

const U_int32 MEP::Resource::m_group

◆ m_ID

const U_int32 MEP::Resource::m_ID

◆ m_name

const std::string MEP::Resource::m_name

◆ m_nofFrames

unsigned int MEP::Resource::m_nofFrames = 0

◆ m_transparency

bool MEP::Resource::m_transparency = false

◆ m_type

ResourceType MEP::Resource::m_type