@Override public boolean isValidEntity(Entity entity,IGame game){
  boolean retVal=false;
  if (null != entity) {
    final int entityId=entity.getId();
    for (int index=0; (index < entityIds.length) && !retVal; index++) {
      if (entityId == entityIds[index]) {
        retVal=true;
      }
    }
  }
  return retVal;
}

@ Override public boolean isValidEntity ( Entity entity , IGame game ) { boolean retVal = false ; if ( null != entity ) { final int entityId = entity . getId ( ) ; for ( int index = 0 ; ( index < entityIds . length ) && ! retVal ; index ++ ) { if ( entityId == entityIds [ index ] ) { retVal = true ; } } } return retVal ; }
determine if the given entity is a valid one to use for this turn .
