bestmove.java

来自「Eclipse 3高级编程一书源码」· Java 代码 · 共 29 行

JAVA
29
字号
/***
 * Hex-7
 *  Version 2.0
 * www.mazeworks.com
 *
 *  Copyright (c) 2002 David Herzog
 *  All Rights Reserved.
 */
package com.bdaum.Hex.game;

import org.eclipse.swt.graphics.Point;

/******** BEST MOVE ********
   temporary storage of candidate moves
*/   
public final class BestMove {
   private Point move ;
   private int value ;
   
   // constructors
   public BestMove() { }
   public BestMove(int v) { this(v, null) ; }
   public BestMove(int v, Point p) {
      value = v ;
      move = p ;
   }
   public Point getMove() { return move ; }
   public int getValue() { return value ; }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?