@Override public void mouseEntered(MouseEvent evt) { if (isStateLockedImpl() || hasStateChildrenImpl()) { return; } checkColors(); Color c = isStatePlayableImpl() ? playableColor : unplayableColor; AWTGridHandle h = getHandle(); h.setBackground(c); h.setForeground(c); h.setImage(getImageOfPlayerImpl(getGameManager().getTurnManager().getCurrentPlayer())); }
@Override public void mouseExited(MouseEvent evt) { checkColors(); if (neutral != null) { AWTGridHandle h = getHandle(); h.setBackground(neutral); h.setForeground(neutral); } if (isStateLockedImpl() || hasStateChildrenImpl()) { return; } getHandle().setImage(null, false); }