Examples of CharacterKeyCDO


Examples of net.cloudcodex.client.storyboard.cdo.CharacterKeyCDO

  public SceneEventHandler(CampaignRPCAsync service) {
    this.service = service;
  }

  public void onRegisterToScene(long campaignId, long characterId, AsyncCallback<List<SceneDTO>> callback) {
    final CharacterKeyCDO characterKey = new CharacterKeyCDO(campaignId, characterId);
    // Creation of the SceneTimer, calls the server-side service in the row
    sceneTimers.put(characterKey, new SceneTimer(service, campaignId, characterId, callback));
  }
View Full Code Here

Examples of net.cloudcodex.client.storyboard.cdo.CharacterKeyCDO

    // Creation of the SceneTimer, calls the server-side service in the row
    sceneTimers.put(characterKey, new SceneTimer(service, campaignId, characterId, callback));
  }

  public void onCheckScene(long campaignId, long characterId) {
    final CharacterKeyCDO characterKey = new CharacterKeyCDO(campaignId, characterId);
    final SceneTimer sceneTimer = sceneTimers.get(characterKey);
    sceneTimer.reset();
  }
View Full Code Here

Examples of net.cloudcodex.client.storyboard.cdo.CharacterKeyCDO

    final SceneTimer sceneTimer = sceneTimers.get(characterKey);
    sceneTimer.reset();
  }
 
  public void onUnregisterToScene(long campaignId, long characterId) {
    final CharacterKeyCDO characterKey = new CharacterKeyCDO(campaignId, characterId);
    final SceneTimer sceneTimer = sceneTimers.remove(characterKey);
    sceneTimer.stop();
  }
View Full Code Here

Examples of net.cloudcodex.client.storyboard.cdo.CharacterKeyCDO

    this.service = service;
  }

  public void onGetCharacterDescription(long campaignId, long characterId,
      SuccessCallback<CharacterDescriptionDTO> callback) {
    final CharacterKeyCDO characterKey = new CharacterKeyCDO(campaignId, characterId);
    final CharacterDescriptionDTO cd = cdCaches.get(characterKey);
    if (cd == null) {
      List<SuccessCallback<CharacterDescriptionDTO>> callbacks = cdCallbacks.get(characterKey);
      if (callbacks == null) {
        // First callback: init
View Full Code Here

Examples of net.cloudcodex.client.storyboard.cdo.CharacterKeyCDO

@EventHandler
public class PlayerBoardEventHandler extends BaseEventHandler<PlayerBoardEventBus> {
  private final Map<CharacterKeyCDO, PlayerBoardPresenter> cache = new HashMap<CharacterKeyCDO, PlayerBoardPresenter>();

  public void onNewPlayerBoard(long campaignId, long characterId, Container<PlayerBoardPresenter> container) {
    final CharacterKeyCDO characterKey = new CharacterKeyCDO(campaignId, characterId);
    PlayerBoardPresenter playerBoardPresenter = cache.get(characterKey);
    if (playerBoardPresenter == null) {
      playerBoardPresenter = eventBus.addHandler(PlayerBoardPresenter.class);
      cache.put(characterKey, playerBoardPresenter);
      playerBoardPresenter.initPlayerBoard(campaignId, characterId);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.