RoleChangeSystem

public class RoleChangeSystem extends TickingSystem

System for handling rolechange mechanics. Systems contain game logic that operates on entities with specific component types.

java.lang.Object > TickingSystem > RoleChangeSystem

Field Summary

roleChangeQueueResource

final RoleChangeQueue roleChangeQueueResource

Field roleChangeQueueResource.

requests

final Deque requests

Field requests.

request

final RoleChangeRequest request

Field request.

holder

final Holder holder

Field holder.

npcComponent

final NPCEntity npcComponent

Field npcComponent.

role

final Role role

Field role.

roleChangeResource

final RoleChangeQueue roleChangeResource

Field roleChangeResource.

queue

final Deque queue

Field queue.

roleChangeQueue

final RoleChangeQueue roleChangeQueue

Field roleChangeQueue.

Method Detail

RoleChangeSystem

public public RoleChangeSystem (@Nonnull final ResourceType roleChangeQueueResourceType, @Nonnull final ComponentType beaconSupportComponentType, @Nonnull final ComponentType playerBlockEventSupportComponentType, @Nonnull final ComponentType npcBlockEventSupportComponentType, @Nonnull final ComponentType playerEntityEventSupportComponentType, @Nonnull final ComponentType npcEntityEventSupportComponentType, @Nonnull final ComponentType timersComponentType, @Nonnull final ComponentType stateEvaluatorComponentType, @Nonnull final ComponentType valueStoreComponentType)

Method RoleChangeSystem.

Parameters:
@Nonnull final ResourceType roleChangeQueueResourceType
@Nonnull final ComponentType beaconSupportComponentType
@Nonnull final ComponentType playerBlockEventSupportComponentType
@Nonnull final ComponentType npcBlockEventSupportComponentType
@Nonnull final ComponentType playerEntityEventSupportComponentType
@Nonnull final ComponentType npcEntityEventSupportComponentType
@Nonnull final ComponentType timersComponentType
@Nonnull final ComponentType stateEvaluatorComponentType
@Nonnull final ComponentType valueStoreComponentType

SystemDependency

public new SystemDependency (Order.AFTER, NewSpawnStartTickingSystem.class)

Method SystemDependency.

Parameters:
Order.AFTER Order.AFTER
NewSpawnStartTickingSystem.class NewSpawnStartTickingSystem.class

getDependencies

public Set> getDependencies ()

Method getDependencies.

tick

public void tick (final float dt, final int systemIndex, @Nonnull final Store store)

Method tick.

Parameters:
final float dt
final int systemIndex
@Nonnull final Store store

requestRoleChange

static void requestRoleChange (@Nonnull final Ref ref, @Nonnull final Role role, final int roleIndex, final boolean changeAppearance, @Nonnull final Store store)

Method requestRoleChange.

Parameters:
@Nonnull final Ref ref
@Nonnull final Role role
final int roleIndex
final boolean changeAppearance
@Nonnull final Store store

RoleChangeRequest

public new RoleChangeRequest (ref, roleIndex, changeAppearance, state, subState)

Method RoleChangeRequest.

Parameters:
ref ref
roleIndex roleIndex
changeAppearance changeAppearance
state state
subState subState

RoleChangeQueue

public public RoleChangeQueue ()

Method RoleChangeQueue.

getResourceType

public RoleChangeQueue> getResourceType ()

Method getResourceType.

clone

public Resource clone ()

Method clone.