ConstructionQueueListenerpublic class ConstructionManagerFiller extends Object implements ConstructionQueueListener
| Constructor | Description |
|---|---|
ConstructionManagerFiller(BuilderManager builderManager,
ConstructionManager manager) |
Create a new instance filler.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(be.yildizgames.engine.feature.entity.construction.EntityConstructionStatus toBuild,
be.yildizgames.common.model.PlayerId p,
be.yildizgames.common.model.EntityId builderId) |
Notify when a new request is added to the queue.
|
void |
notify(ConstructionQueue list) |
Notify about a change in the state.
|
public ConstructionManagerFiller(BuilderManager builderManager, ConstructionManager manager)
manager - Manager responsible to build entities.public void notify(ConstructionQueue list)
ConstructionQueueListenernotify in interface ConstructionQueueListenerlist - Queue changed.public void add(be.yildizgames.engine.feature.entity.construction.EntityConstructionStatus toBuild,
be.yildizgames.common.model.PlayerId p,
be.yildizgames.common.model.EntityId builderId)
ConstructionQueueListeneradd in interface ConstructionQueueListenertoBuild - Construction data.p - Id of the player requesting the build.builderId - Id of the entity building this entity.Copyright © 2017–2018. All rights reserved.