Class SkillShoot

java.lang.Object
  |
  +--Skill
        |
        +--SkillShoot
All Implemented Interfaces:
DebugInterface, StrategyGeneralInterface

public class SkillShoot
extends Skill

This class encapsulates the intelligence for a shoot skill

Version:
0.01
Author:
Samuel Broscheit, Michael Schifferdecker

Field Summary
(package private)  boolean DEBUG
          debug switch (class internal debug switch)
(package private)  java.awt.geom.Point2D.Double destination
          shoot destination point
(package private)  DynObject dynObject
          shoot destination object
(package private)  int power
          shoot power
(package private)  boolean shooted
          has already shot?
(package private)  byte shootType
          The kind of shot
 
Fields inherited from class Skill
clearLock, cycles, player
 
Fields inherited from interface StrategyGeneralInterface
AUDIO_CUT_DIST, BALL_DECAY, BALL_RAND, BALL_SIZE, BALL_SPEED_MAX, BALL_WEIGHT, CATCH_BAN_CYCLE, CATCH_PROBABILITY, CATCHABLE_AREA_L, CATCHABLE_AREA_W, CKICK_MARGIN, DASH_POWER_RATE, EFFORT_DEC, EFFORT_DEC_THR, EFFORT_INC, EFFORT_INC_THR, EFFORT_MIN, FORMATION_244, FORMATION_433, FORMATION_541, FORMATION_CATENAGIO, FORMATIONS_NUM_OF, GOAL_CENTER_POINT, GOAL_WIDTH, HEAR_DECAY, HEAR_INC, HEAR_MAX, INERTIA_MOMENT, KICK_POWER_RATE, KICKABLE_AREA, KICKABLE_MARGIN, MAX_AUDIOINFO, MAX_DASH_PER_CYCLE, MAXMOMENT, MAXPOWER, MIN_STAMINA, MINMOMENT, MINPOWER, NECK, OFFSIDE_ACTIVE_AREA_SIZE, PENALTY_AREA_X_WIDTH, PENALTY_AREA_Y_WIDTH, PLAYER_DECAY, PLAYER_RAND, PLAYER_SIZE, PLAYER_SPEED_MAX, PLAYER_WEIGHT, PORT, RECOVER_DEC, RECOVER_DEC_THR, RECOVER_MIN, RECV_STEP, SEND_STEP, SENSE_BODY_STEP, SIMULATOR_STEP, SKILL_CENTER_EGDE_OF_VIEW, SKILL_CONST_SLOPE, SKILL_DEC_SLOPE, SKILL_DESTINATION_DASH, SKILL_DISTANCE_DASH, SKILL_DYNOBJ_DASH, SKILL_DYNOBJ_SHOOT, SKILL_FIX_ANGLE_TURN, SKILL_FIX_ANGLE_TURN_NECK, SKILL_HIGH_PRECISION, SKILL_INC_SLOPE, SKILL_INFINIT, SKILL_KOORD_SHOOT, SKILL_LEFT_EGDE_OF_VIEW, SKILL_LOW_PRECISION, SKILL_MEDIUM_PRECISION, SKILL_RIGHT_EGDE_OF_VIEW, SKILL_TO_COORDINATES_TURN, SKILL_TO_COORDINATES_TURN_NECK, SKILL_TO_DYNOBJ_TURN, STAMINA_INC_MAX, STAMINA_MAX, STRATEGIES, STRATEGY_FLAG_OPPGOAL, STRATEGY_FLAG_PUMP, STRATEGY_FLAG_TESTFLAG, VISIBLE_ANGLE
 
Fields inherited from interface DebugInterface
DEBUG_SWITCH_STRATEGY_IS_SET, DEBUG_SWITCH_VISUALISATION_IS_SET, DEBUG_SWITCH_WORLDMODEL_AUDIOEVENT_IS_SET, DEBUG_SWITCH_WORLDMODEL_BODYEVENT_IS_SET, DEBUG_SWITCH_WORLDMODEL_VISUALEVENT_IS_SET
 
Constructor Summary
(package private) SkillShoot(Player player, DynObject dynObject)
          constructor
(package private) SkillShoot(Player player, DynObject dynObject, int power)
          constructor
(package private) SkillShoot(Player player, java.awt.geom.Point2D.Double destination)
           
(package private) SkillShoot(Player player, java.awt.geom.Point2D.Double destination, int power)
          constructor
 
Method Summary
 void perform()
          perform skill shoot
 boolean succeeded()
          checks whether skill has succeeded
 
Methods inherited from class Skill
isLocked, setClearLock
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

DEBUG

final boolean DEBUG
debug switch (class internal debug switch)

shooted

boolean shooted
has already shot?

power

int power
shoot power

destination

java.awt.geom.Point2D.Double destination
shoot destination point

dynObject

DynObject dynObject
shoot destination object

shootType

byte shootType
The kind of shot
Constructor Detail

SkillShoot

SkillShoot(Player player,
           java.awt.geom.Point2D.Double destination)

SkillShoot

SkillShoot(Player player,
           java.awt.geom.Point2D.Double destination,
           int power)
constructor
Parameters:
player - reference to player
destination - shoot destination point
power - shootPower

SkillShoot

SkillShoot(Player player,
           DynObject dynObject)
constructor
Parameters:
player - reference to player
dynObject - shoot destination point

SkillShoot

SkillShoot(Player player,
           DynObject dynObject,
           int power)
constructor
Parameters:
player - reference to player
dynObject - shoot destination point
power - shootPower
Method Detail

perform

public void perform()
perform skill shoot
Overrides:
perform in class Skill

succeeded

public boolean succeeded()
checks whether skill has succeeded
Overrides:
succeeded in class Skill
Returns:
boolean succeeded