com.triangularpixels.rebirth.resources
Class SimpleResource

java.lang.Object
  extended by com.triangularpixels.rebirth.resources.SimpleResource
All Implemented Interfaces:
Resource
Direct Known Subclasses:
AutoResource, SpriteCacheResource

public class SimpleResource
extends Object
implements Resource

SimpleResource stubs out the Resource interface for when you don't need anything more complicated than the default behaviour

Author:
john_campbell

Field Summary
protected  FileMonitor fileMonitor
           
protected  ResourceIO io
           
 
Constructor Summary
SimpleResource()
           
 
Method Summary
 void create()
           
 void destroy()
           
 String getName()
           
 boolean mainCreate()
           
 void parse(Element element)
           
 void setFileMonitor(FileMonitor fileMonitor)
           
 void setIO(ResourceIO io)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

io

protected ResourceIO io

fileMonitor

protected FileMonitor fileMonitor
Constructor Detail

SimpleResource

public SimpleResource()
Method Detail

setName

public void setName(String name)
Specified by:
setName in interface Resource

getName

public String getName()
Specified by:
getName in interface Resource

setIO

public void setIO(ResourceIO io)
Specified by:
setIO in interface Resource

setFileMonitor

public void setFileMonitor(FileMonitor fileMonitor)
Specified by:
setFileMonitor in interface Resource

destroy

public void destroy()
Specified by:
destroy in interface Resource

parse

public void parse(Element element)
Specified by:
parse in interface Resource

create

public void create()
Specified by:
create in interface Resource

mainCreate

public boolean mainCreate()
Specified by:
mainCreate in interface Resource


Copyright © 2009 TriangularPixels.com. All Rights Reserved.