org.ogre4j
Class ScriptLoader

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.ScriptLoader
All Implemented Interfaces:
IScriptLoader, INativeObject

public class ScriptLoader
extends NativeObject
implements IScriptLoader


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  ScriptLoader(InstancePointer p)
          This constructor is public for internal useage only!
protected ScriptLoader(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  ScriptLoader(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 float getLoadingOrder()
          Gets the relative loading order of scripts of this type.
 IStringVector getScriptPatterns()
          Gets the file patterns which should be used to find scripts for this class.
 void parseScript(IDataStreamPtr stream, java.lang.String groupName)
          Parse a script file.
 
Methods inherited from class org.xbig.base.NativeObject
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xbig.base.INativeObject
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Constructor Detail

ScriptLoader

public ScriptLoader(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


ScriptLoader

protected ScriptLoader(InstancePointer p,
                       boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


ScriptLoader

public ScriptLoader(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

getScriptPatterns

public IStringVector getScriptPatterns()
Gets the file patterns which should be used to find scripts for this class.

Specified by:
getScriptPatterns in interface IScriptLoader

parseScript

public void parseScript(IDataStreamPtr stream,
                        java.lang.String groupName)
Parse a script file.

Specified by:
parseScript in interface IScriptLoader

getLoadingOrder

public float getLoadingOrder()
Gets the relative loading order of scripts of this type.

Specified by:
getLoadingOrder in interface IScriptLoader


Copyright © 2007 netAllied GmbH. All Rights Reserved.