Skip navigation links
A C F G H I L M N O P R S 

A

addProcess(ContProcess) - Method in class com.matthewmichelotti.collider.util.ContProcesses
Adds a new continuous-time process.

C

canInteract(HitBox, HitBox) - Method in interface com.matthewmichelotti.collider.InteractTester
Determines whether collision/separation events should be generated for a given pair of HitBoxes.
cellWidth - Variable in class com.matthewmichelotti.collider.ColliderOpts
An efficiency parameter representing the width and height of a cell in the Collider grid.
Collider - Class in com.matthewmichelotti.collider
Class for managing continuous collision detection of HitBoxes.
Collider(ColliderOpts) - Constructor for class com.matthewmichelotti.collider.Collider
Constructs a new Collider.
ColliderEvent - Class in com.matthewmichelotti.collider
A collision or seperation event between two HitBoxes.
ColliderListener - Interface in com.matthewmichelotti.collider.util
An Event Listener interface for handling events generated by a Collider.
ColliderOpts - Class in com.matthewmichelotti.collider
Contains parameters for constructing a Collider.
ColliderOpts() - Constructor for class com.matthewmichelotti.collider.ColliderOpts
Creates a blank ColliderOpts object.
ColliderProcess - Class in com.matthewmichelotti.collider.util
A ContProcess implementation wrapped around a Collider.
ColliderProcess(Collider, ColliderListener) - Constructor for class com.matthewmichelotti.collider.util.ColliderProcess
Constructs a new ColliderProcess.
ColliderProcess(ColliderOpts, ColliderListener) - Constructor for class com.matthewmichelotti.collider.util.ColliderProcess
Constructs a new ColliderProcess.
collision(ColliderEvent) - Method in interface com.matthewmichelotti.collider.util.ColliderListener
Handle a collision event, called when two interactable HitBoxes collide.
com.matthewmichelotti.collider - package com.matthewmichelotti.collider
 
com.matthewmichelotti.collider.util - package com.matthewmichelotti.collider.util
 
commit(double) - Method in class com.matthewmichelotti.collider.HitBox
This should be called after you modify the HitBox by changing its position, velocity, interactivity, etc.
ContProcess - Interface in com.matthewmichelotti.collider.util
A continuous-time process.
ContProcesses - Class in com.matthewmichelotti.collider.util
Couples multiple ContProcess objects together to handle their respective events in chronological order.
ContProcesses() - Constructor for class com.matthewmichelotti.collider.util.ContProcesses
Constructs a new ContProcesses object.

F

free() - Method in class com.matthewmichelotti.collider.HBCircle
 
free() - Method in class com.matthewmichelotti.collider.HBRect
 
free() - Method in class com.matthewmichelotti.collider.HitBox
Call when done using this HitBox.

G

getDiam() - Method in class com.matthewmichelotti.collider.HBCircle
Get the diameter.
getFirst() - Method in class com.matthewmichelotti.collider.ColliderEvent
Returns the first HitBox involved in this event.
getGroup() - Method in class com.matthewmichelotti.collider.HitBox
Returns the group that this HitBox belongs to.
getHeight() - Method in class com.matthewmichelotti.collider.HBRect
Get the height.
getInteractGroups(HitBox) - Method in interface com.matthewmichelotti.collider.InteractTester
Determines which groups a given HitBox is allowed to interact with.
getNormal(HitBox) - Method in class com.matthewmichelotti.collider.HitBox
Returns a normal vector between the two HitBoxes.
getOther(HitBox) - Method in class com.matthewmichelotti.collider.ColliderEvent
Given one of the HitBoxes involved in this event, this is a convenience method for obtaining the other involved HitBox.
getOverlap(HitBox) - Method in class com.matthewmichelotti.collider.HitBox
Returns the amount that the two HitBoxes overlap.
getOverlap() - Method in class com.matthewmichelotti.collider.Normal
Returns the magnitude of the normal vector.
getOwner() - Method in class com.matthewmichelotti.collider.HitBox
Returns the Object associated with this HitBox.
getSecond() - Method in class com.matthewmichelotti.collider.ColliderEvent
Returns the second HitBox involved in this event.
getTime() - Method in class com.matthewmichelotti.collider.Collider
Returns current time of the simulation.
getTime() - Method in class com.matthewmichelotti.collider.ColliderEvent
Returns the time of the event.
getTime() - Method in class com.matthewmichelotti.collider.HitBox
Returns the current time of the simulation.
getTime() - Method in class com.matthewmichelotti.collider.util.ContProcesses
Returns the current time of the processes.
getUnitX() - Method in class com.matthewmichelotti.collider.Normal
Returns the x-coordinate of the unit normal vector.
getUnitY() - Method in class com.matthewmichelotti.collider.Normal
Returns the y-coordinate of the unit normal vector.
getVelDiam() - Method in class com.matthewmichelotti.collider.HBCircle
Get the velocity of the diameter.
getVelHeight() - Method in class com.matthewmichelotti.collider.HBRect
Get the velocity of the height.
getVelWidth() - Method in class com.matthewmichelotti.collider.HBRect
Get the velocity of the width.
getVelX() - Method in class com.matthewmichelotti.collider.HBPositioned
Get the velocity of the center x-coordinate.
getVelY() - Method in class com.matthewmichelotti.collider.HBPositioned
Get the velocity of the center y-coordinate.
getWidth() - Method in class com.matthewmichelotti.collider.HBRect
Get the width.
getX() - Method in class com.matthewmichelotti.collider.HBPositioned
Get the center x-coordinate.
getY() - Method in class com.matthewmichelotti.collider.HBPositioned
Get the center y-coordinate.

H

HBCircle - Class in com.matthewmichelotti.collider
A circular HitBox.
HBPositioned - Class in com.matthewmichelotti.collider
Superclass of all HitBoxes that make use of a central position.
HBRect - Class in com.matthewmichelotti.collider
An axis-aligned rectangular HitBox.
HitBox - Class in com.matthewmichelotti.collider
Description of position, shape, and velocities of a hitbox used for testing collision with other HitBoxes.

I

interactivityChange() - Method in class com.matthewmichelotti.collider.HitBox
Call this method if there is a change in the return values of InteractTester.canInteract(HitBox, HitBox) involving this HitBox.
interactTester - Variable in class com.matthewmichelotti.collider.ColliderOpts
Used to determine which pairs of HitBoxes should be tested for collisions.
InteractTester - Interface in com.matthewmichelotti.collider
User-implemented interface to determine which HitBoxes are allowed to interact with each other.
isCollision() - Method in class com.matthewmichelotti.collider.ColliderEvent
Returns true if this is a collision event.
isSeparation() - Method in class com.matthewmichelotti.collider.ColliderEvent
Returns true if this is a separation event.

L

log() - Method in class com.matthewmichelotti.collider.Collider
Prints some debug information for the Collider to standard output.

M

makeCircle() - Method in class com.matthewmichelotti.collider.Collider
Obtains a circular HitBox to be used with this Collider.
makeRect() - Method in class com.matthewmichelotti.collider.Collider
Obtains a rectangular HitBox to be used with this Collider.
maxForesightTime - Variable in class com.matthewmichelotti.collider.ColliderOpts
An efficiency parameter representing a bound on how far in advance collisions/separations may be tested for.

N

Normal - Class in com.matthewmichelotti.collider
A normal vector between two HitBoxes.
NUM_GROUPS - Static variable in class com.matthewmichelotti.collider.HitBox
Number of legal HitBox groups.

O

overlaps(HitBox) - Method in class com.matthewmichelotti.collider.HitBox
Returns true if the two HitBoxes overlap.

P

peekNextEventTime() - Method in class com.matthewmichelotti.collider.Collider
This method reveals the time of the next event in the priority queue that is used to keep track of potential collisions/separations and internal events for this Collider.
peekNextEventTime() - Method in class com.matthewmichelotti.collider.util.ColliderProcess
 
peekNextEventTime() - Method in interface com.matthewmichelotti.collider.util.ContProcess
Returns the time that the next event will occur in this process.

R

removeProcess(ContProcess) - Method in class com.matthewmichelotti.collider.util.ContProcesses
Removes a process.
resolveEvent() - Method in class com.matthewmichelotti.collider.util.ColliderProcess
 
resolveEvent() - Method in interface com.matthewmichelotti.collider.util.ContProcess
Resolve an event that occurs at the current time.

S

separateBuffer - Variable in class com.matthewmichelotti.collider.ColliderOpts
Roughly the distance that two collided HitBoxes must be from each other before a separated event is generated.
separation(ColliderEvent) - Method in interface com.matthewmichelotti.collider.util.ColliderListener
Handle a separation event, called when two interactable HitBoxes separate.
setDiam(double) - Method in class com.matthewmichelotti.collider.HBCircle
Set the diameter.
setDims(double) - Method in class com.matthewmichelotti.collider.HBRect
Set the width and height to the same value.
setDims(double, double) - Method in class com.matthewmichelotti.collider.HBRect
Set the width and height.
setGroup(int) - Method in class com.matthewmichelotti.collider.HitBox
Set the group that this HitBox belongs to.
setHeight(double) - Method in class com.matthewmichelotti.collider.HBRect
Set the height.
setOwner(Object) - Method in class com.matthewmichelotti.collider.HitBox
Set an object to be associated with this HitBox.
setPos(double, double) - Method in class com.matthewmichelotti.collider.HBPositioned
Set the center position.
setVel(double, double) - Method in class com.matthewmichelotti.collider.HBPositioned
Set the velocity of the center position.
setVelDiam(double) - Method in class com.matthewmichelotti.collider.HBCircle
Set the velocity of the diameter.
setVelDims(double) - Method in class com.matthewmichelotti.collider.HBRect
Set the velocities of the width and height to the same value.
setVelDims(double, double) - Method in class com.matthewmichelotti.collider.HBRect
Set the velocities of the width and height;
setVelHeight(double) - Method in class com.matthewmichelotti.collider.HBRect
Set the velocity of the height.
setVelWidth(double) - Method in class com.matthewmichelotti.collider.HBRect
Set the velocity of the width.
setVelX(double) - Method in class com.matthewmichelotti.collider.HBPositioned
Set the velocity of the center x-coordinate.
setVelY(double) - Method in class com.matthewmichelotti.collider.HBPositioned
Set the velocity of the center y-coordinate.
setWidth(double) - Method in class com.matthewmichelotti.collider.HBRect
Set the width.
setX(double) - Method in class com.matthewmichelotti.collider.HBPositioned
Set the center x-coordinate.
setY(double) - Method in class com.matthewmichelotti.collider.HBPositioned
Set the center y-coordinate.
stepToTime(double) - Method in class com.matthewmichelotti.collider.Collider
Same as calling Collider.stepToTime(double, boolean) with inclusive set to true.
stepToTime(double, boolean) - Method in class com.matthewmichelotti.collider.Collider
Advance the simulation to the specified time.
stepToTime(double) - Method in class com.matthewmichelotti.collider.util.ColliderProcess
 
stepToTime(double) - Method in interface com.matthewmichelotti.collider.util.ContProcess
Advances this process to the given time, without resolving any events at that time.
stepToTime(double) - Method in class com.matthewmichelotti.collider.util.ContProcesses
Advances all processes to the given time, resolving all events along the way.
A C F G H I L M N O P R S 
Skip navigation links

Copyright © 2013-2014 Matthew D. Michelotti