input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public void set hit on group int hit on group this hit on group hit on group | setter for property hit on group |
public void set connections boolean connections this connections connections | setter for property connections |
public boolean get connections int index return connections index | getter for property connections |
public double get beans layer z return beans layer z | getter for property beans layer z |
public void set beans layer z double beans layer z this beans layer z beans layer z | setter for property beans layer z |
public double get shadow layer z return shadow layer z | getter for property shadow layer z |
public void set connections int index boolean c connections index c | setter for property connections |
public void set shadow layer z double shadow layer z this shadow layer z shadow layer z | setter for property shadow layer z |
public void set offset point2 d double offset this offset offset | setter for property offset |
public puzzle bean get first bean return first bean | getter for property first bean |
public void set first bean puzzle bean first bean this first bean first bean | setter for property first bean |
public puzzle bean get second bean return second bean | getter for property second bean |
public void confirm if state choosing state confirmed fire confirmed | confirms if currently choosing |
public bean image source get bean image source return image source | getter for property yupo image source |
public void set bean image source bean image source image source this image source image source renderer set bean image source image source | setter for property image source |
public bean image source get shadow image source return shadow image source | getter for property shadow image source |
public void set second bean puzzle bean second bean this second bean second bean | setter for property second bean |
public void set shadow image source bean image source shadow image source this shadow image source shadow image source shadow renderer set bean image source shadow image source | setter for property shadow image source |
public void cancel if state choosing state cancelled fire cancelled | cancels if currently choosing |
public bean grid get grid return grid | getter for property grid |
public void set key state int key boolean state if state key states key key pressed key else if state key states key key released key | set the state of the key |
public void key pressed int key key states key true pressing down a key always causes the motion in that direction to start if key left key controlled set xmove 1 else if key right key controlled set xmove 1 else if key up key controlled set ymove 1 else controlled set ymove 1 | notify the controller that the key has been pressed down |
public void key released int key key states key false releasing a key causes motion to stop if the opposite key is not down or revert to that opposite motion if it is if key left key controlled set xmove key states right key 1 0 else if key right key controlled set xmove key states left key 1 0 else if key up key controlled set ymove key states down key 1 0 else controlled set ymove key states up key 1 0 | notify the controller that the key has been release |
public void revert press press time previous press time if press count 0 press count | undo the most recent press |
public bean image source get bean image source return is | getter for property is |
public void revert release release time previous release time if release count 0 release count | undo the most recent release |
public void set bean image source bean image source is this is is | setter for property is |
public void release long time set key down false set release time time set release count get release count 1 | alter the state to add a release |
public void press long time set key down true set press time time set press count get press count 1 | alter the state to add a press |
public double get swap factor return swap factor | getter for property swap factor |
public void set swap factor double swap factor this swap factor swap factor | setter for property swap factor |
public void set tension double tension this tension tension | setter for property tension |
public void set value int value this value value update digits | setter for property value |
public double get tension limit return tension limit | getter for property tension limit |
public int get first base return first base | getter for property first base |
public int get second base return second base | getter for property second base |
public void set tension limit double tension limit this tension limit tension limit | setter for property tension limit |
public void key pressed int key key monitor key pressed key | notify the controller that the key has been pressed down |
public yupo score get score return score | getter for property score |
public int get chain return chain | getter for property chain |
public yupo chain get chain return chain | getter for property chain |
public void set key state int key boolean state key monitor set key state key state | set the state of the key |
public grid position get center position return center position | getter for property center position |
public void key released int key key monitor key released key | notify the controller that the key has been release |
public void set center position grid position center position this center position center position if get center position get y get floor set floor get center position get y set tension since floor lowered 0 | setter for property center position |
public double get drop tension increment return drop tension increment | getter for property drop tension increment |
public void set slide long desired current time set slide get linear time desired current time | set the slide so that the current reported time will change to the |
public void set slide long linear time long desired current time slide desired current time linear time logger debug sliding by slide linear time at slide linear time has slide true | set the slide so that when the linear time reaches the specified value |
public long get linear time return system current time millis offset time | return current time in milliseconds from offset |
public long get current time long linear time get linear time return linear time find slide linear time | return current time in milliseconds incorporating any current slide |
public void set drop tension increment double drop tension increment this drop tension increment drop tension increment | setter for property drop tension increment |
public long get reenable time return reenable time | getter for property reenable time |
public void set floor int floor this floor floor | setter for property floor |
public void set reenable time long reenable time this reenable time reenable time | setter for property reenable time |
public double get tension since floor lowered return tension since floor lowered | getter for property tension since floor lowered |
public void set tension since floor lowered double tension since floor lowered this tension since floor lowered tension since floor lowered | setter for property tension since floor lowered |
public void add presence targetted presence presence add presence to list to be targetted presences add presence listen for presence completing so we can forget about it presence add completion listener this | add presence to the list to have targets changed |
public void remove presence targetted presence presence remove presence from list to be targetted presences remove presence no longer listen for event completing presence remove completion listener this | remove presence from the list to have targets changed |
public void set targets presence list targets set each targetted presence to specified targets list for iterator it presences iterator it has next targetted presence it next set targets targets | set each targetted presence we are managing to target the specified |
public int get point threshold return point threshold | getter for property point threshold |
public void set point threshold int point threshold this point threshold point threshold | setter for property point threshold |
public two dvector get direction vector int x int y return vectors x 1 y 1 | get the precalculated direction vector in specified direction |
public void check bounds long time float r get unscaled radius get transform get scale float x get transform get translation get x float y get transform get translation get y if x r bound box get x x bound box get x r if x r bound box get x2 x bound box get x2 r if y r bound box get y y bound box get y r if y r bound box get y2 y bound box get y2 r transform set translation new two dvector x y | check the cannon yupo against its bound box and react appropriately |
public int get parameter int index return parameters index int value | return int value of specified parameter |
public void set parameter int index int value parameters index new integer value | set int value of specified parameter |
public long get parameter int index return parameters index long value | return long value of specified parameter |
public void set parameter int index long value parameters index new long value | set long value of specified parameter |
private boolean update action invocation action invocation inv long time logger info updating action invocation inv return inv get action update presence get parameters inv time | update the specified action invocation using stored parameters |
private void initialise action invocation action invocation inv long time logger info initialising action invocation inv try to get parameters script action parameters params inv get action initialise presence time if we have no parameters then nothing to do action is complete otherwise put the parameters into the map indexed by invocation and add to running list if params null parameters put inv params running action invocations add inv logger info action initialised else logger info action completed instantly | initialise the specified invocation |
public float get parameter int index return parameters index float value | return float value of specified parameter |
public void update long time store previous state previous transform set to transform previous update time update time store new update time update time time mark transformed collision capsules as inaccurate now we have a new transform transformed collision capsules accurate false | subclasses must call this update method and then update the transform |
private script action parameters get parameters action invocation inv return script action parameters parameters get inv | get the parameters associated with an action invocation |
public void set to transform transform translation set x transform get translation get x translation set y transform get translation get y scale transform get scale rotation transform get rotation | set this transform to have the same translation rotation and scale as |
public void progress transform rate float elapsed time get translation add rate get translation elapsed time set rotation get rotation rate get rotation elapsed time set scale get scale rate get scale elapsed time | progress this transform by using the specified transform as a rate |
public float closest approach line segment segment return float math sqrt double closest approach squared segment | find the closest approach distance of this line segment |
public float dot two dvector vector return get x vector get x get y vector get y | calculate dot product of this vector with specified vector |
public void add two dvector vector float other vector get components components 0 other 0 components 1 other 1 | add specified vector to this vector |
public float closest approach squared line segment segment two dvector u get end point deep clone u subtract get start point two dvector v segment get end point deep clone v subtract segment get start point two dvector w get start point deep clone w subtract segment get start point return closest approach squared u v w | find the square of the closest approach distance of this line segment |
public boolean contains two dvector vector float xv vector get x float yv vector get y if xv x return false else if xv x2 return false else if yv y return false else if yv y2 return false else return true | test if vector is in the rectangle |
public void add two dvector vector float scale float other vector get components components 0 scale other 0 components 1 scale other 1 | add specified scaled vector to this vector |
public void subtract two dvector vector float other vector get components components 0 other 0 components 1 other 1 | subtract specified vector from this vector |
public float closest approach two dvector offset line segment segment two dvector segment offset return float math sqrt double closest approach squared offset segment segment offset | find the closest approach distance of this line segment |
public string to string return transform translation get translation scale get scale rotation get rotation | describe as string |
public void scale float scale components 0 scale components 1 scale | scale this vector by specified scalar double |
public float closest approach squared two dvector offset line segment segment two dvector segment offset two dvector relative offset segment offset deep clone relative offset subtract offset two dvector u get end point deep clone u subtract get start point two dvector v segment get end point deep clone v subtract segment get start point two dvector w get start point deep clone w subtract segment get start point w subtract relative offset return closest approach squared u v w | find the square of the closest approach distance of this line segment |
public float closest approach track track return float math sqrt double closest approach squared track | calculate the closest approach of this track to another over the time interval |
public boolean intersects two dvector offset capsule capsule two dvector capsule offset float actual distance squared closest approach squared offset capsule capsule offset float min distance squared get radius capsule get radius get radius capsule get radius return actual distance squared min distance squared | returns true if any area of this capsule intersects the other capsule when |
public void assert capsule double x1 double y1 double x2 double y2 double radius capsule c assert equals x1 c get start point get x delta assert equals x2 c get end point get x delta assert equals y1 c get start point get y delta assert equals y2 c get end point get y delta assert equals radius c get radius delta | assert capsule parameters match expected values to delta accuracy |
public boolean intersects capsule capsule float actual distance squared closest approach squared capsule float min distance squared get radius capsule get radius get radius capsule get radius return actual distance squared min distance squared | returns true if any area of this capsule intersects the other capsule |
public string to string return capsule from get start point to get end point radius get radius | convert to string giving start end and radius |
public int get maximum place y return maximum place y | getter for property maximum place y |
public void set maximum place y int maximum place y this maximum place y maximum place y | setter for property maximum place y |
public yupo engine get engine return engine | getter for property engine |
public void set engine yupo engine engine this engine engine | setter for property engine |
public void set image java awt image image this image image | setter for property image |
public void start drop event sub grid drop grid long time make an event for the drop move event store it as specific reference and in set and start it make the event also get the rate it will accelerate to so we can start at the correct rate for next drop if any drop event new sub grid move event yupo grid drop grid 0 1 drop start rate gravity drop start rate drop event get end rate drop event set start time time add event drop event | try to start a drop event |
public void network failure long time if we have already completed do nothing if complete return complete time add event to show notice of network failure screen message event message event new screen message event network has new point2 d double 7 5 10 5 message event set start time time add event message event message event new screen message event failed new point2 d double 7 5 11 message event set start time time add event message event | display a message stating that network has failed and complete game |
public boolean is fast drop return dropping fast | return tru if we have fast drop set short interval false for normal |
public void set short interval long short interval this short interval short interval set fast drop state this will make sure we have correct new interval for current setting set fast drop dropping fast | setter for property short interval |
public void set drop increment interval long t if place event null if place event instanceof auto two bean drop event place event set drop increment interval t drop increment interval t | set the drop increment interval for the current drop if any and future |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.