CellView.java 文件源码

java
阅读 22 收藏 0 点赞 0 评论 0

项目:retro-reversi 作者:
public CellView(GamePresenter presenter, int x, int y, int boardX, int boardY) {
    this.presenter = presenter;
    actorX = x;
    actorY = y;
    this.boardX = boardX;
    this.boardY = boardY;
    setBounds(actorX, actorY, tile.getWidth(), tile.getHeight());
    previousPiece = presenter.getCurrentPiece(boardX, boardY);
    addListeners();

    ICONS.put('B', black);
    ICONS.put('W', white);
    ICONS.put('X', suggestion);
    ICONS.put('-', null);

    System.arraycopy(blackFramesTmp[0], 0, blackFrames, 0, 7);
    System.arraycopy(whiteFramesTmp[0], 0, whiteFrames, 0, 7);
    blackAnimation = new Animation<TextureRegion>(0.09f, blackFrames);
    whiteAnimation = new Animation<TextureRegion>(0.09f, whiteFrames);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号