Class CharacterState
java.lang.Object
com.csse3200.game.cutscene.runtime.states.CharacterState
Character state.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the character.float
Gets the opacity.Gets the position.float
Gets the rotation.float
getScale()
Gets the scale.com.badlogic.gdx.scenes.scene2d.utils.SpriteDrawable
Gets the texture.float
Gets the x offset.float
Gets the y offset.boolean
Gets the on screen.void
setCharacter
(Character character) Sets the character.void
setOnScreen
(boolean onScreen) Sets the on screen.void
setOpacity
(float opacity) Sets the opacity.void
setPosition
(Position position) Sets the position.void
setRotation
(float rotation) Sets the rotation.void
setScale
(float scale) Sets the scale.void
setTexture
(com.badlogic.gdx.scenes.scene2d.utils.SpriteDrawable texture) Sets the texture.void
setxOffset
(float xOffset) Sets the x offset.void
setyOffset
(float yOffset) Sets the y offset.
-
Constructor Details
-
CharacterState
Creates a new character state.- Parameters:
character
- the character
-
-
Method Details
-
getCharacter
Gets the character.- Returns:
- the character
-
setCharacter
Sets the character.- Parameters:
character
- the character
-
getxOffset
public float getxOffset()Gets the x offset.- Returns:
- the x offset
-
setxOffset
public void setxOffset(float xOffset) Sets the x offset.- Parameters:
xOffset
- the x offset
-
getyOffset
public float getyOffset()Gets the y offset.- Returns:
- the y offset
-
setyOffset
public void setyOffset(float yOffset) Sets the y offset.- Parameters:
yOffset
- the y offset
-
getScale
public float getScale()Gets the scale.- Returns:
- the scale
-
setScale
public void setScale(float scale) Sets the scale.- Parameters:
scale
- the scale
-
isOnScreen
public boolean isOnScreen()Gets the on screen.- Returns:
- the on screen
-
setOnScreen
public void setOnScreen(boolean onScreen) Sets the on screen.- Parameters:
onScreen
- the on screen
-
getTexture
public com.badlogic.gdx.scenes.scene2d.utils.SpriteDrawable getTexture()Gets the texture.- Returns:
- the texture
-
setTexture
public void setTexture(com.badlogic.gdx.scenes.scene2d.utils.SpriteDrawable texture) Sets the texture.- Parameters:
texture
- the texture
-
getRotation
public float getRotation()Gets the rotation.- Returns:
- the rotation
-
setRotation
public void setRotation(float rotation) Sets the rotation.- Parameters:
rotation
- the rotation
-
getOpacity
public float getOpacity()Gets the opacity.- Returns:
- the opacity
-
setOpacity
public void setOpacity(float opacity) Sets the opacity.- Parameters:
opacity
- the opacity
-
getPosition
Gets the position.- Returns:
- the position
-
setPosition
Sets the position.- Parameters:
position
- the position
-