about summary refs log tree commit diff stats
path: root/lib/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks')
0 files changed, 0 insertions, 0 deletions
4' href='#n34'>34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.fourisland.fourpuzzle.gamestate.mapview.event;

import com.fourisland.fourpuzzle.Direction;
import com.fourisland.fourpuzzle.Layer;
import com.fourisland.fourpuzzle.gamestate.mapview.Map;
import java.awt.Point;
import java.util.Collections;
import java.util.List;

/**
 *
 * @author hatkirby
 */
public final class ImmutableEvent
{
    final Event ev;
    public ImmutableEvent(Event ev)
    {
        this.ev = ev;
    }

    public String getLabel()
    {
        return new String(ev.getLabel());
    }

    public Point getLocation()
    {
        return new Point(ev.getLocation());
    }

    public Direction getDirection()
    {
        return ev.getDirection();
    }

    public boolean isMoving()
    {
        return ev.isMoving();
    }

    public Layer getLayer()
    {
        return ev.getLayer();
    }

    public boolean isOccupyingSpace(int x, int y)
    {
        return ev.isOccupyingSpace(x, y);
    }

    public List<Direction> getLegalMoves()
    {
        return Collections.unmodifiableList(ev.getLegalMoves());
    }

    public int getAnimationStep()
    {
        return ev.getAnimationStep();
    }

    public Map getParentMap()
    {
        return ev.getParentMap();
    }

    public MoveSpeed getMoveSpeed()
    {
        return ev.getMoveSpeed();
    }

}