games.strategy.engine.data
Class NamedAttachable
java.lang.Object
games.strategy.engine.data.GameDataComponent
games.strategy.engine.data.DefaultNamed
games.strategy.engine.data.NamedAttachable
- All Implemented Interfaces:
- Attachable, Named, java.io.Serializable
- Direct Known Subclasses:
- PlayerID, Resource, Rule, Territory, UnitType
public class NamedAttachable
- extends DefaultNamed
- implements Attachable
- Version:
- 1.0
- Author:
- Sean Bridges
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
NamedAttachable
public NamedAttachable(java.lang.String name,
GameData data)
- Creates new NamedAttatchable
getAttachment
public IAttachment getAttachment(java.lang.String key)
- Specified by:
getAttachment in interface Attachable
getAttachments
public java.util.Map<java.lang.String,IAttachment> getAttachments()
- Specified by:
getAttachments in interface Attachable
addAttachment
public void addAttachment(java.lang.String key,
IAttachment value)
- Specified by:
addAttachment in interface Attachable