|
|||||||||
Atavism Version 2018.1 | AGIS API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatavism.agis.core.DCMap
public class DCMap
maps a base DC to an item specific DC you have an item like a leather tunic, and you want to put that on a human female. which meshes do you use? this maps from a base dc (like human_female.mesh and the nude submeshes) to the dc you should use for the item, such as human_female_tunic.mesh at some point we want to add 'state' like whether you are in combat or not and also equipslot into the mix
Constructor Summary | |
---|---|
DCMap()
|
Method Summary | |
---|---|
void |
add(DisplayContext base,
DisplayContext target)
|
DisplayContext |
get(DisplayContext base)
returns corresponding DC. |
DisplayContext |
getDefault()
sometimes you want to set a default mapping. |
java.util.Map<DisplayContext,DisplayContext> |
getMap()
|
void |
marshalObject(AOByteBuffer buf)
Marshal the object into the byte buffer argument. |
void |
setDefault(DisplayContext dc)
|
void |
setMap(java.util.Map<DisplayContext,DisplayContext> map)
|
java.lang.Object |
unmarshalObject(AOByteBuffer buf)
Unmarshal from the byte buffer argument, returning an Object that containing the unmarshalled state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DCMap()
Method Detail |
---|
public void add(DisplayContext base, DisplayContext target)
public DisplayContext get(DisplayContext base)
public DisplayContext getDefault()
public void setDefault(DisplayContext dc)
public java.util.Map<DisplayContext,DisplayContext> getMap()
public void setMap(java.util.Map<DisplayContext,DisplayContext> map)
public void marshalObject(AOByteBuffer buf)
Marshallable
marshalObject
in interface Marshallable
buf
- The byte bufferpublic java.lang.Object unmarshalObject(AOByteBuffer buf)
Marshallable
unmarshalObject
in interface Marshallable
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |