aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/fr/umlv/java/wallj/event/BombTimerIncrEvent.java
blob: cbfe6e540fd0e1a7645ff649f9310564e4351da6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package fr.umlv.java.wallj.event;

import fr.umlv.java.wallj.board.TileVec2;

import java.util.Objects;

/**
 * Bomb setup event signalling the update of a bomb at a given position.
 *
 * @author Pacien TRAN-GIRARD
 */
public final class BombTimerIncrEvent implements GameEvent {
  private final TileVec2 pos;

  /**
   * @param pos requested setup position
   */
  public BombTimerIncrEvent(TileVec2 pos) {
    this.pos = Objects.requireNonNull(pos);
  }

  /**
   * @return the setup position
   */
  public TileVec2 getPos() {
    return pos;
  }
}