- SafeIterator<E> - Interface in cell2d
-
A SafeIterator is an Iterator whose Collection can be safely modified by
some means other than the Iterator's own remove() method while the Iterator
is active.
- scale(long) - Method in class cell2d.CellVector
-
Multiplies this CellVector's coordinates by the specified factor.
- scale(long) - Method in class cell2d.space.PolygonHitbox
-
Multiplies the coordinates of all of this PolygonHitbox's relative
vertices by the specified factor.
- setActionPriority(int) - Method in class cell2d.space.ThinkerObject
-
Sets this ThinkerObject's action priority to the specified value.
- setActionPriority(int) - Method in class cell2d.Thinker
-
Sets this Thinker's action priority to the specified value.
- setAlpha(double) - Method in class cell2d.space.SpaceObject
-
Sets this SpaceObject's alpha value to the specified value.
- setAngle(double) - Method in class cell2d.CellVector
-
Sets this CellVector's angle to the specified value while retaining its
magnitude.
- setAngle(double) - Method in class cell2d.space.SpaceObject
-
Sets this SpaceObject's angle of rotation to the specified value.
- setAnimation(int, Animation) - Method in class cell2d.CellGameState
-
Sets the AnimationInstance that is assigned to this CellGameState with
the specified ID to a new AnimationInstance of the specified Animation,
if there is not already an AnimationInstance of that Animation assigned
with that ID.
- setAnimation(int, Animation) - Method in class cell2d.space.SpaceObject
-
Sets the AnimationInstance that is assigned to this SpaceObject with the
specified ID to a new AnimationInstance of the specified Animation, if
there is not already an AnimationInstance of that Animation assigned
with that ID.
- setAnimation(Animation) - Method in class cell2d.space.SpaceObject
-
Sets this SpaceObject's AnimationInstance with ID 0 to a new
AnimationInstance of the specified Animation, if there is not already an
AnimationInstance of that Animation assigned with ID 0, then sets this
SpaceObject's appearance to its AnimationInstance with ID 0.
- setAnimInstance(int, AnimationInstance) - Method in class cell2d.CellGameState
-
Sets the AnimationInstance that is assigned to this CellGameState with
the specified ID to the specified AnimationInstance, if it is not already
assigned to a CellGameState.
- setAnimInstance(int, AnimationInstance) - Method in class cell2d.space.SpaceObject
-
Sets the AnimationInstance that is assigned to this SpaceObject with the
specified ID to the specified AnimationInstance, if it is not already
assigned to a CellGameState.
- setAnimInstance(AnimationInstance) - Method in class cell2d.space.SpaceObject
-
Sets both this SpaceObject's appearance and its AnimationInstance with ID
0 to the specified AnimationInstance, if it is not already assigned to a
CellGameState.
- setAppearance(Drawable) - Method in class cell2d.space.SpaceObject
-
Sets this SpaceObject's appearance to the specified Drawable.
- setCamera(SpaceObject<T>) - Method in class cell2d.space.Viewport
-
Sets this Viewport's camera to the specified SpaceObject, or to none if
the specified SpaceObject is null.
- setCellDimensions(long, long) - Method in class cell2d.space.SpaceState
-
Sets the dimensions of each of this SpaceState's cells to the specified
values.
- setCenterOffset(CellVector) - Method in class cell2d.space.SpaceObject
-
Sets this SpaceObject's center's offset to the specified value.
- setCenterOffset(long, long) - Method in class cell2d.space.SpaceObject
-
Sets the coordinates of this SpaceObject's center's offset to the
specified values.
- setCenterOffsetX(long) - Method in class cell2d.space.SpaceObject
-
Sets the x-coordinate of this SpaceObject's center's offset to the
specified value.
- setCenterOffsetY(long) - Method in class cell2d.space.SpaceObject
-
Sets the y-coordinate of this SpaceObject's center's offset to the
specified value.
- setCollision(boolean) - Method in class cell2d.space.MobileObject
-
Sets whether this MobileObject has Cell2D's standard collision mechanics
enabled.
- setCollisionHitbox(Hitbox<T>) - Method in class cell2d.space.MobileObject
-
Sets this MobileObject's collision Hitbox to the specified Hitbox.
- setComponent(int, Hitbox<T>) - Method in class cell2d.space.CompositeHitbox
-
Sets the component Hitbox that is assigned to this CompositeHitbox with
the specified ID to the specified Hitbox.
- setCoordinates(CellVector) - Method in class cell2d.CellVector
-
Sets this CellVector's point to the specified value.
- setCoordinates(long, long) - Method in class cell2d.CellVector
-
Sets this CellVector's point to the specified coordinates.
- setDrawMode(DrawMode) - Method in class cell2d.space.SpaceState
-
Sets this SpaceState's DrawMode.
- setDrawPriority(int) - Method in class cell2d.space.SpaceObject
-
Sets this SpaceObject's draw priority to the specified value.
- setFilter(Filter) - Method in class cell2d.space.SpaceObject
-
Sets this SpaceObject's Filter to the specified Filter, or to none if the
specified Filter is null.
- setFPS(int) - Method in class cell2d.CellGame
-
Sets the number of frames that this CellGame executes per second to the
specified value.
- setFullscreen(boolean) - Method in class cell2d.CellGame
-
Sets whether this CellGame is in fullscreen mode.
- setGameState(CellGameState) - Method in class cell2d.AnimationInstance
-
Sets the CellGameState to which this AnimationInstance is assigned.
- setGameState(SpaceState<T>, boolean) - Method in class cell2d.space.MobileObject
-
Sets the SpaceState to which this MobileObject is currently assigned.
- setGameState(SpaceState<T>) - Method in class cell2d.space.SpaceObject
-
Sets the SpaceState to which this SpaceObject is assigned.
- setHUD(HUD<T>) - Method in class cell2d.space.SpaceState
-
Sets the HUD that is assigned to this SpaceState to the specified HUD, if
it is not already assigned to a ThinkerGroup.
- setHUD(HUD<T>) - Method in class cell2d.space.Viewport
-
Sets the HUD that is assigned to this Viewport to the specified HUD, if
it is not already assigned to a ThinkerGroup.
- setIndex(int, int, boolean) - Method in class cell2d.AnimationInstance
-
Sets this AnimationInstance's index at the specified level to the
specified value.
- setIndex(int, int) - Method in class cell2d.AnimationInstance
-
Sets this AnimationInstance's index at the specified level to the
specified value.
- setIndex(int) - Method in class cell2d.AnimationInstance
-
Sets this AnimationInstance's index at its highest level to the specified
value.
- setLayer(int, SpaceLayer<T>) - Method in class cell2d.space.SpaceState
-
Sets the SpaceLayer that is assigned to this SpaceState with the
specified ID to the specified SpaceLayer, if it is not already assigned
to a ThinkerGroup.
- setLeader(MobileObject) - Method in class cell2d.space.MobileObject
-
Sets this MobileObject's leader to the specified MobileObject.
- setLocatorHitbox(Hitbox<T>) - Method in class cell2d.space.SpaceObject
-
Sets this SpaceObject's locator Hitbox to the specified Hitbox.
- setLooping(boolean) - Method in class cell2d.Music
-
Sets whether this Music track is looping indefinitely, if it is currently
playing.
- setMagnitude(long) - Method in class cell2d.CellVector
-
Sets this CellVector's magnitude to the specified value while retaining
its angle.
- setMovementPriority(int) - Method in class cell2d.space.MobileObject
-
Sets this MobileObject's movement priority to the specified value.
- setOverlapHitbox(Hitbox<T>) - Method in class cell2d.space.SpaceObject
-
Sets this SpaceObject's overlap Hitbox to the specified Hitbox.
- setPosition(double) - Method in class cell2d.Music
-
Sets the music player's position in seconds in this Music track, if it is
currently playing.
- setPosition(CellVector, boolean) - Method in class cell2d.space.MobileObject
-
Sets this MobileObject's position to the specified value.
- setPosition(long, long, boolean) - Method in class cell2d.space.MobileObject
-
Sets this MobileObject's position to the specified value.
- setPosition(CellVector) - Method in class cell2d.space.SpaceObject
-
Sets this SpaceObject's position to the specified value.
- setPosition(long, long) - Method in class cell2d.space.SpaceObject
-
Sets this SpaceObject's position to the specified value.
- setRadius(long) - Method in class cell2d.space.CircleHitbox
-
Sets this CircleHitbox's radius to the specified value.
- setRelAngle(double) - Method in class cell2d.space.Hitbox
-
Sets this Hitbox's relative angle of rotation to the specified value.
- setRelBottom(long) - Method in class cell2d.space.RectangleHitbox
-
Sets the difference of the y-coordinates of this RectangleHitbox's
relative bottom edge and relative position to the specified value, if
doing so would not cause this RectangleHitbox's height to be negative.
- setRelDifference(CellVector) - Method in class cell2d.space.LineHitbox
-
Sets this LineHitbox's relative difference to the specified value.
- setRelDifference(long, long) - Method in class cell2d.space.LineHitbox
-
Sets this LineHitbox's relative difference to the specified value.
- setRelDX(long) - Method in class cell2d.space.LineHitbox
-
Sets the x-coordinate of this LineHitbox's relative difference to the
specified value.
- setRelDY(long) - Method in class cell2d.space.LineHitbox
-
Sets the y-coordinate of this LineHitbox's relative difference to the
specified value.
- setRelLeft(long) - Method in class cell2d.space.RectangleHitbox
-
Sets the difference of the x-coordinates of this RectangleHitbox's
relative left edge and relative position to the specified value, if doing
so would not cause this RectangleHitbox's width to be negative.
- setRelPosition(CellVector) - Method in class cell2d.space.Hitbox
-
Sets this Hitbox's relative position to the specified value.
- setRelPosition(long, long) - Method in class cell2d.space.Hitbox
-
Sets this Hitbox's relative position to the specified coordinates.
- setRelPressingAngle(Double) - Method in class cell2d.space.MobileObject
-
Sets this MobileObject's relative pressing angle to the specified value,
or to none if the specified value is null.
- setRelPressingAngle(double) - Method in class cell2d.space.MobileObject
-
Sets this MobileObject's relative pressing angle to the specified value.
- setRelRight(long) - Method in class cell2d.space.RectangleHitbox
-
Sets the difference of the x-coordinates of this RectangleHitbox's
relative right edge and relative position to the specified value, if
doing so would not cause this RectangleHitbox's width to be negative.
- setRelTop(long) - Method in class cell2d.space.RectangleHitbox
-
Sets the difference of the y-coordinates of this RectangleHitbox's
relative top edge and relative position to the specified value, if doing
so would not cause this RectangleHitbox's height to be negative.
- setRelVertex(int, CellVector) - Method in class cell2d.space.PolygonHitbox
-
Sets this PolygonHitbox's relative vertex at the specified index to the
specified value.
- setRelVertex(int, long, long) - Method in class cell2d.space.PolygonHitbox
-
Sets this PolygonHitbox's relative vertex at the specified index to the
specified value.
- setRelVertexX(int, long) - Method in class cell2d.space.PolygonHitbox
-
Sets the x-coordinate of this PolygonHitbox's relative vertex at the
specified index to the specified value.
- setRelVertexY(int, long) - Method in class cell2d.space.PolygonHitbox
-
Sets the y-coordinate of this PolygonHitbox's relative vertex at the
specified index to the specified value.
- setRelX(long) - Method in class cell2d.space.Hitbox
-
Sets the x-coordinate of this Hitbox's relative position to the specified
value.
- setRelXFlip(boolean) - Method in class cell2d.space.Hitbox
-
Sets whether this Hitbox is relatively horizontally flipped.
- setRelY(long) - Method in class cell2d.space.Hitbox
-
Sets the y-coordinate of this Hitbox's relative position to the specified
value.
- setRelYFlip(boolean) - Method in class cell2d.space.Hitbox
-
Sets whether this Hitbox is relatively vertically flipped.
- setScaleFactor(double) - Method in class cell2d.CellGame
-
Sets the factor by which this CellGame's screen is scaled to make the
size of the program window to the specified value.
- setScreenHeight(int) - Method in class cell2d.CellGame
-
Sets the height in pixels of this CellGame's screen to the specified
value.
- setScreenWidth(int) - Method in class cell2d.CellGame
-
Sets the width in pixels of this CellGame's screen to the specified
value.
- setShowFPS(boolean) - Method in class cell2d.CellGame
-
Sets whether this CellGame displays on its screen the number of frames
that it executes per second.
- setSolid(boolean) - Method in class cell2d.space.Hitbox
-
Sets whether this Hitbox's surfaces in every direction are solid.
- setSolid(boolean) - Method in class cell2d.space.SpaceObject
-
Sets whether this SpaceObject's surfaces in every direction are solid.
- setSolidHitbox(Hitbox) - Method in class cell2d.space.SpaceObject
-
Sets this SpaceObject's solid Hitbox to the specified Hitbox.
- setSpeed(int, long) - Method in class cell2d.AnimationInstance
-
Sets this AnimationInstance's speed at the specified level to the
specified value.
- setSpeed(long) - Method in class cell2d.AnimationInstance
-
Sets this AnimationInstance's speed at its highest level to the specified
value.
- setSpeed(double) - Method in class cell2d.Music
-
Sets the speed at which this Music track is playing, with 1 representing
no speed change, if it is currently playing.
- setSpeed(long) - Method in class cell2d.space.MobileObject
-
Sets this MobileObject's speed, the magnitude of its velocity, to the
specified value.
- setStep(CellVector) - Method in class cell2d.space.MobileObject
-
Sets this MobileObject's step to the specified value.
- setStep(long, long) - Method in class cell2d.space.MobileObject
-
Sets this MobileObject's step to the specified value.
- setStepLength(long) - Method in class cell2d.space.MobileObject
-
Sets the length of this MobileObject's step to the specified value.
- setStepX(long) - Method in class cell2d.space.MobileObject
-
Sets the x-component of this MobileObject's step to the specified value.
- setStepY(long) - Method in class cell2d.space.MobileObject
-
Sets the y-component of this MobileObject's step to the specified value.
- setSurfaceSolid(Direction, boolean) - Method in class cell2d.space.Hitbox
-
Sets whether this Hitbox's surface in the specified Direction is solid.
- setSurfaceSolid(Direction, boolean) - Method in class cell2d.space.SpaceObject
-
Sets whether this SpaceObject's surface in the specified Direction is
solid.
- setThinkerGroup(ThinkerGroup<T, U, V>) - Method in class cell2d.Thinker
-
Sets the ThinkerGroup to which this Thinker is assigned.
- setTimeFactor(long) - Method in class cell2d.AnimationInstance
-
Sets this AnimationInstance's time factor to the specified value.
- setTimeFactor(long) - Method in class cell2d.CellGameState
-
Sets this CellGameState's time factor to the specified value.
- setTimeFactor(long) - Method in class cell2d.space.SpaceObject
-
Sets this SpaceObject's time factor to the specified value.
- setTimeFactor(long) - Method in class cell2d.Thinker
-
Sets this Thinker's time factor to the specified value.
- setTimerValue(TimedEvent, int) - Method in class cell2d.space.ThinkerObject
-
Sets the value of this ThinkerObject's timer for the specified TimedEvent
to the specified value.
- setTimerValue(TimedEvent, int) - Method in class cell2d.Thinker
-
Sets the value of this Thinker's timer for the specified TimedEvent to
the specified value.
- setVelocity(CellVector) - Method in class cell2d.space.MobileObject
-
Sets this MobileObject's velocity to the specified value.
- setVelocity(long, long) - Method in class cell2d.space.MobileObject
-
Sets this MobileObject's velocity to the specified value.
- setVelocityX(long) - Method in class cell2d.space.MobileObject
-
Sets the x-component of this MobileObject's velocity to the specified
value.
- setVelocityY(long) - Method in class cell2d.space.MobileObject
-
Sets the y-component of this MobileObject's velocity to the specified
value.
- setViewport(int, Viewport<T>) - Method in class cell2d.space.SpaceState
-
Sets the Viewport that is assigned to this SpaceState with the specified
ID to the specified Viewport, if it is not already assigned to a
SpaceState.
- setVolume(double) - Method in class cell2d.Music
-
Sets the volume at which this Music track is playing, with 1 representing
no volume change, if it is currently playing.
- setX(long) - Method in class cell2d.CellVector
-
Sets the x-coordinate of this CellVector's point to the specified value.
- setX(long, boolean) - Method in class cell2d.space.MobileObject
-
Sets the x-coordinate of this MobileObject's position to the specified
value.
- setX(long) - Method in class cell2d.space.SpaceObject
-
Sets the x-coordinate of this SpaceObject's position to the specified
value.
- setX1(long) - Method in class cell2d.space.Viewport
-
Sets the x-coordinate in fracunits of this Viewport's left edge on the
screen to the specified value, if doing so would not cause this
Viewport's width to be negative.
- setX2(long) - Method in class cell2d.space.Viewport
-
Sets the x-coordinate in fracunits of this Viewport's right edge on the
screen to the specified value, if doing so would not cause this
Viewport's width to be negative.
- setXFlip(boolean) - Method in class cell2d.space.SpaceObject
-
Sets whether this SpaceObject is horizontally flipped.
- setY(long) - Method in class cell2d.CellVector
-
Sets the y-coordinate of this CellVector's point to the specified value.
- setY(long, boolean) - Method in class cell2d.space.MobileObject
-
Sets the y-coordinate of this MobileObject's position to the specified
value.
- setY(long) - Method in class cell2d.space.SpaceObject
-
Sets the y-coordinate of this SpaceObject's position to the specified
value.
- setY1(long) - Method in class cell2d.space.Viewport
-
Sets the y-coordinate in fracunits of this Viewport's top edge on the
screen to the specified value, if doing so would not cause this
Viewport's height to be negative.
- setY2(long) - Method in class cell2d.space.Viewport
-
Sets the y-coordinate in fracunits of this Viewport's bottom edge on the
screen to the specified value, if doing so would not cause this
Viewport's height to be negative.
- setYFlip(boolean) - Method in class cell2d.space.SpaceObject
-
Sets whether this SpaceObject is vertically flipped.
- solidBoundingBoxesMeet(Class<O>) - Method in class cell2d.space.MobileObject
-
Returns all of the solid SpaceObjects of the specified class in this
MobileObject's SpaceState whose solid Hitboxes' rectangular bounding
boxes touch or intersect this MobileObject's collision Hitbox's
rectangular bounding box.
- solidBoundingBoxesMeet(Hitbox<T>, Class<O>) - Method in class cell2d.space.SpaceState
-
Returns all of this SpaceState's solid SpaceObjects of the specified
class whose solid Hitboxes' rectangular bounding boxes touch or intersect
the specified Hitbox's rectangular bounding box.
- Sound - Class in cell2d
-
A Sound is a sound effect.
- Sound(String, boolean) - Constructor for class cell2d.Sound
-
Creates a new Sound from an audio file.
- SpaceLayer<T extends CellGame> - Class in cell2d.space
-
A SpaceLayer is a SpaceThinker that renders visuals either in front of or
behind those of the SpaceObjects in the SpaceState to which it is assigned.
- SpaceLayer() - Constructor for class cell2d.space.SpaceLayer
-
- SpaceObject<T extends CellGame> - Class in cell2d.space
-
A SpaceObject is a physical object in a SpaceState's space.
- SpaceObject(Hitbox<T>) - Constructor for class cell2d.space.SpaceObject
-
Creates a new SpaceObject with the specified locator Hitbox.
- SpaceObject(Hitbox<T>, SpaceObject<T>) - Constructor for class cell2d.space.SpaceObject
-
Creates a new SpaceObject with the specified locator Hitbox that acts as
if it was created by the specified SpaceObject, initially copying its
creator's time factor, flipped status, and angle of rotation.
- SpaceState<T extends CellGame> - Class in cell2d.space
-
A SpaceState is a CellGameState that handles gameplay in a continuous
two-dimensional space.
- SpaceState(T, int, long, long, DrawMode) - Constructor for class cell2d.space.SpaceState
-
Creates a new SpaceState of the specified CellGame with the specified ID.
- SpaceThinker<T extends CellGame> - Class in cell2d.space
-
A SpaceThinker is the type of Thinker that is used by SpaceStates.
- SpaceThinker() - Constructor for class cell2d.space.SpaceThinker
-
- Sprite - Class in cell2d
-
A Sprite is a static image that can be drawn to a Graphics context.
- Sprite(String, int, int, Set<Filter>, boolean) - Constructor for class cell2d.Sprite
-
Creates a new Sprite from an image file.
- Sprite(String, int, int, Color, Set<Filter>, boolean) - Constructor for class cell2d.Sprite
-
Creates a new Sprite from an image file.
- Sprite(String, int, int, int, int, int, Set<Filter>, boolean) - Constructor for class cell2d.Sprite
-
Creates a new Sprite from an image file.
- Sprite(Image) - Constructor for class cell2d.Sprite
-
Creates a new Sprite from a Slick2D Image.
- Sprite(Sprite, Filter, boolean) - Constructor for class cell2d.Sprite
-
Creates a new Sprite from an existing Sprite with a Filter applied to it.
- SpriteSheet - Class in cell2d
-
A SpriteSheet is a rectangular grid of Sprites.
- SpriteSheet(String, int, int, int, int, int, int, int, Set<Filter>, boolean) - Constructor for class cell2d.SpriteSheet
-
Creates a new SpriteSheet from an image file.
- SpriteSheet(String, int, int, int, int, int, int, int, Color, Set<Filter>, boolean) - Constructor for class cell2d.SpriteSheet
-
Creates a new SpriteSheet from an image file.
- SpriteSheet(String, int, int, int, int, int, int, int, int, int, int, Set<Filter>, boolean) - Constructor for class cell2d.SpriteSheet
-
Creates a new SpriteSheet from an image file.
- SpriteSheet(SpriteSheet, Filter, boolean) - Constructor for class cell2d.SpriteSheet
-
Creates a new SpriteSheet from an existing SpriteSheet with a Filter
applied to it.
- sqrt(long) - Static method in class cell2d.Frac
-
Returns the square root of the specified fracunit-scale number.
- startGame(CellGame) - Static method in class cell2d.CellGame
-
Starts a CellGame.
- stop() - Method in interface cell2d.SafeIterator
-
Instructs this SafeIterator to stop iterating over its Collection.
- stop() - Method in class cell2d.Sound
-
Stops this Sound.
- stringBeganActions(T, String) - Method in class cell2d.CellGameState
-
Actions for this CellGameState to take immediately after its CellGame
begins typing a new String.
- stringCanceledActions(T, String) - Method in class cell2d.CellGameState
-
Actions for this CellGameState to take immediately after its CellGame's
typed String is canceled.
- stringDeletedActions(T, String) - Method in class cell2d.CellGameState
-
Actions for this CellGameState to take immediately after its CellGame's
typed String is deleted and reset to the empty String.
- stringFinishedActions(T, String) - Method in class cell2d.CellGameState
-
Actions for this CellGameState to take immediately after its CellGame's
typed String is finished.
- sub(CellVector) - Method in class cell2d.CellVector
-
Subtracts the specified CellVector from this CellVector.
- sub(long, long) - Method in class cell2d.CellVector
-
Subtracts the specified coordinates from this CellVector's own.
- sub(CellVector, CellVector) - Static method in class cell2d.CellVector
-
Returns a new CellVector that represents the second specified
CellVector subtracted from the first.
- surfaceIsSolid(Direction) - Method in class cell2d.space.Hitbox
-
Returns whether this Hitbox's surface in the specified Direction is
solid.
- surfaceIsSolid(Direction) - Method in class cell2d.space.SpaceObject
-
Returns whether this SpaceObject's surface in the specified Direction is
solid.