Class CharacterState

java.lang.Object
com.csse3200.game.cutscene.runtime.states.CharacterState

public class CharacterState extends Object
Character state.
  • Constructor Details

    • CharacterState

      public CharacterState(Character character)
      Creates a new character state.
      Parameters:
      character - the character
  • Method Details

    • getCharacter

      public Character getCharacter()
      Gets the character.
      Returns:
      the character
    • setCharacter

      public void setCharacter(Character character)
      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

      public Position getPosition()
      Gets the position.
      Returns:
      the position
    • setPosition

      public void setPosition(Position position)
      Sets the position.
      Parameters:
      position - the position