Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean process(DecisionObject result){
- boolean decision = false;
- if(result.get_current_state()){
- if(result.get_line_of_sight()){
- if(result.get_estimated_distance()){
- if(result.get_enemy_health_status()){
- if(result.get_probability_above(30)){
- decision = true;
- }
- }
- } else if(!result.get_estimated_distance()){
- if(result.get_probability_above(70)){
- decision = true;
- }
- }
- }
- }
- System.out.println("decision result: " + decision);
- return decision;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement