Class InanimateBox

All Implemented Interfaces:
Collidable
Direct Known Subclasses:
InanimateDoor

public class InanimateBox extends Inanimate
This is the default implementation of an inanimate in the game (no ground).
  • Constructor Details

    • InanimateBox

      protected InanimateBox(Vec pos, Vec size, RGBAColor color)
      Create an InanimateBox.
      Parameters:
      pos - the position
      size - the size
      color - the color
  • Method Details

    • internalRender

      public void internalRender(GameGrid f)
      Description copied from class: GameElement

      Template method that will be called periodically after being added to a IScene. Must be as performant as possible to keep the FPS low, since it will be called in every render-loop.

      Should be overwritten in sub classes for custom visualization using the GameGrid.

      Overrides:
      internalRender in class Inanimate
      Parameters:
      f - the GameGrid that represents the games field and supplies primitive drawing operations.
    • staticCreate

      public static Inanimate staticCreate(Vec pos)
      Create a new InanimateBox.
      Parameters:
      pos - the position
      Returns:
      the new Inanimate