Mallet Engine  2
Entity-Component based game engine, written in Java.
 All Classes Namespaces Files Functions Variables
Public Member Functions | Protected Member Functions
com.linxonline.mallet.resources.Resource Class Reference
Inheritance diagram for com.linxonline.mallet.resources.Resource:
Inheritance graph
[legend]

List of all members.

Public Member Functions

synchronized final long getLivingTime ()
synchronized final long getCreationTime ()
synchronized final int getReferenceCount ()
synchronized final void register ()
synchronized final void unregister ()
void destroy ()
String type ()

Protected Member Functions

 Resource ()

Detailed Description

Resource is the root class that all resource types should extends from.

It uses a simple Reference Counting system to determine how many objects are using the Resource currently.


Constructor & Destructor Documentation


Member Function Documentation

If a Resource is hooked to an underlying system, for example the buffer in an ALSASound, then use destroy to unhook it.

Or if the resource stores other resources, call their respective, unregister().

Reimplemented in com.linxonline.mallet.resources.sound.Sound.

When was the Resource created.

How long has the Resource existed

How many are using this resource


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables