Class KitchenPlayer

  • All Implemented Interfaces:
    com.apogames.kitchenchef.game.interfaces.Think

    public class KitchenPlayer
    extends java.lang.Object
    implements com.apogames.kitchenchef.game.interfaces.Think
    The type Kitchen player.
    • Constructor Detail

      • KitchenPlayer

        public KitchenPlayer​(float x,
                             float y,
                             float radius,
                             float[] color,
                             int id)
        Instantiates a new Kitchen player.
        Parameters:
        x - the x
        y - the y
        radius - the radius
        color - the color
        id - the id
    • Method Detail

      • getId

        public int getId()
        Gets id.
        Returns:
        the id
      • isCustomer

        public boolean isCustomer()
        Is customer boolean.
        Returns:
        the boolean
      • setCustomer

        public void setCustomer​(boolean customer,
                                int addX,
                                int addY)
        Sets customer.
        Parameters:
        customer - the customer
        addX - the add x
        addY - the add y
      • getDish

        public KitchenDish getDish()
        Gets dish.
        Returns:
        the dish
      • setDish

        public void setDish​(KitchenDish dish)
        Sets dish.
        Parameters:
        dish - the dish
      • getIngredient

        public KitchenIngredient getIngredient()
        Gets ingredient.
        Returns:
        the ingredient
      • setIngredient

        public void setIngredient​(KitchenIngredient ingredient)
        Sets ingredient.
        Parameters:
        ingredient - the ingredient
      • getSpice

        public KitchenSpice getSpice()
        Gets spice.
        Returns:
        the spice
      • setSpice

        public void setSpice​(KitchenSpice spice)
        Sets spice.
        Parameters:
        spice - the spice
      • getPoints

        public int getPoints()
        Gets points.
        Returns:
        the points
      • setPoints

        public void setPoints​(float points)
        Sets points.
        Parameters:
        points - the points
      • getWaitHelper

        public WaitHelper getWaitHelper()
        Gets wait helper.
        Returns:
        the wait helper
      • setWaitHelper

        public void setWaitHelper​(WaitHelper waitHelper)
        Sets wait helper.
        Parameters:
        waitHelper - the wait helper
      • getPosition

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

        public void setPosition​(Vector position)
        Sets position.
        Parameters:
        position - the position
      • getRadius

        public float getRadius()
        Gets radius.
        Returns:
        the radius
      • getColor

        public float[] getColor()
        Get color float [ ].
        Returns:
        the float [ ]
      • setColor

        public void setColor​(float[] color)
        Sets color.
        Parameters:
        color - the color
      • getDirection

        public Direction getDirection()
        Gets direction.
        Returns:
        the direction
      • getVector

        public Vector getVector()
        Gets vector.
        Returns:
        the vector
      • setVector

        public void setVector​(Vector vector)
        Sets vector.
        Parameters:
        vector - the vector
      • getOrder

        public Order getOrder()
        Gets order.
        Returns:
        the order
      • setOrder

        public void setOrder​(Order order)
        Sets order.
        Parameters:
        order - the order
      • getLineWidth

        public float getLineWidth()
        Gets line width.
        Returns:
        the line width
      • setLineWidth

        public void setLineWidth​(float lineWidth)
        Sets line width.
        Parameters:
        lineWidth - the line width
      • isOnActionPoint

        public boolean isOnActionPoint()
        Is on action point boolean.
        Returns:
        the boolean
      • setOnActionPoint

        public void setOnActionPoint​(boolean onActionPoint)
        Sets on action point.
        Parameters:
        onActionPoint - the on action point
      • getCurAnimation

        public int getCurAnimation()
        Gets cur animation.
        Returns:
        the cur animation
      • setCurAnimation

        public void setCurAnimation​(int curAnimation)
        Sets cur animation.
        Parameters:
        curAnimation - the cur animation
      • intersects

        public boolean intersects​(com.apogames.kitchenchef.entity.ApoEntity entity)
        Intersects boolean.
        Parameters:
        entity - the entity
        Returns:
        the boolean
      • think

        public void think​(float delta)
        Description copied from interface: com.apogames.kitchenchef.game.interfaces.Think
        Think.
        Specified by:
        think in interface com.apogames.kitchenchef.game.interfaces.Think
        Parameters:
        delta - the delta
      • render

        public void render​(com.apogames.kitchenchef.backend.GameScreen screen,
                           int x,
                           int y)
        Render.
        Parameters:
        screen - the screen
        x - the x
        y - the y
      • renderFill

        public void renderFill​(com.apogames.kitchenchef.backend.GameScreen screen,
                               int x,
                               int y)
        Render fill.
        Parameters:
        screen - the screen
        x - the x
        y - the y
      • renderPicture

        public void renderPicture​(com.apogames.kitchenchef.backend.GameScreen screen,
                                  float x,
                                  float y)
        Render picture.
        Parameters:
        screen - the screen
        x - the x
        y - the y
      • renderPicture

        public void renderPicture​(com.apogames.kitchenchef.backend.GameScreen screen,
                                  float x,
                                  float y,
                                  float goalWidth,
                                  float goalHeight)
        Render picture.
        Parameters:
        screen - the screen
        x - the x
        y - the y
        goalWidth - the goal width
        goalHeight - the goal height