hit on field . uderzenie na pole . concode_field_sep MissState missState concode_elem_sep FieldState state concode_elem_sep UnusedState unusedState concode_field_sep FIELD_STATE getStateForOpponent concode_elem_sep FIELD_STATE getStateForOpponent concode_elem_sep FIELD_STATE getStateForOpponent concode_elem_sep FIELD_STATE getStateForOpponent concode_elem_sep FIELD_STATE getState concode_elem_sep FIELD_STATE getState concode_elem_sep FIELD_STATE getState concode_elem_sep FIELD_STATE getState concode_elem_sep UnusedState instance concode_elem_sep MissState instance concode_elem_sep void setState
HIT_RESULT function ( MessageModel arg0 ) { FieldState loc0 = state ; state = state . opponentHit ( arg0 ) ; if ( loc0 . getState ( ) == FIELD_STATE . UNUSED ) { return HIT_RESULT . MISS ; } else if ( loc0 . getState ( ) == FIELD_STATE . SHIP ) { return HIT_RESULT . HIT ; } else { return HIT_RESULT . WRONG ; } }