| Package | com.pblabs.engine.core |
| Class | public class ObjectType |
| Inheritance | ObjectType Object |
| Implements | ISerializable |
See also
| Property | Defined By | ||
|---|---|---|---|
| bits : int [read-only]
The bitmask that this type wraps. | ObjectType | ||
| typeName : String
The name of the type associated with this object type. | ObjectType | ||
| typeNames : Array
A list of all the type names associated with this object type. | ObjectType | ||
| wildcard : ObjectType [static] [read-only] | ObjectType | ||
| Method | Defined By | ||
|---|---|---|---|
ObjectType(... arguments) | ObjectType | ||
add(typeName:String):void
Add typeName to current ObjectType
| ObjectType | ||
and(other:ObjectType):Boolean
Perform a bitwise-and against another ObjectType and return true if they match. | ObjectType | ||
deserialize(xml:XML):*
The xml description for this class can be either a single string, which will
then be assigned to the TypeName property, or a list of strings, each in their
own child tag (the name of which doesn't matter). | ObjectType | ||
remove(typeName:String):void
Remove typeName from current ObjectType
| ObjectType | ||
serialize(xml:XML):void
serializes the object to XML. | ObjectType | ||
| bits | property |
bits:int [read-only] The bitmask that this type wraps. This should not be used directly. Instead, use the various test methods on the ObjectTypeManager.
public function get bits():intSee also
| typeName | property |
typeName:StringThe name of the type associated with this object type. If multiple names have been assigned, the one with the least significant bit is returned.
public function get typeName():String public function set typeName(value:String):void| typeNames | property |
typeNames:ArrayA list of all the type names associated with this object type.
public function get typeNames():Array public function set typeNames(value:Array):void| wildcard | property |
| ObjectType | () | Constructor |
public function ObjectType(... arguments)... arguments |
| add | () | method |
public function add(typeName:String):voidAdd typeName to current ObjectType
Parameters
typeName:String |
| and | () | method |
public function and(other:ObjectType):BooleanPerform a bitwise-and against another ObjectType and return true if they match.
Parameters
other:ObjectType |
Boolean |
| deserialize | () | method |
public function deserialize(xml:XML):*The xml description for this class can be either a single string, which will then be assigned to the TypeName property, or a list of strings, each in their own child tag (the name of which doesn't matter). deserializes the object from xml. The format of the xml passed is custom, depending on the way the object was serialized with the serialize method.
Parameters
xml:XML — The xml containing the serialized definition of the class.
|
* — The deserialized object. Usually 'this' should be returned, but in
some cases it may be useful to return something else. The Enumerable class
does this to force all values to be a member of the enumeration.
|
| remove | () | method |
public function remove(typeName:String):voidRemove typeName from current ObjectType
Parameters
typeName:String |
| serialize | () | method |
public function serialize(xml:XML):voidserializes the object to XML. This should not include the main tag defining the class itself.
Parameters
xml:XML — The xml object to which the serialization of this class should
be added. This xml object is a single tag containing the main class definition,
so only children of this class should be added to it.
|