Entity.cpp 532 B

123456789101112131415161718192021222324252627282930
  1. #include "Entity.h"
  2. Entity::Entity( const EntityType* zType, bool hasInventory )
  3. : Model3D(), Inventory( { 0.f, 0.f, 0.f }, hasInventory ), zEntityType( zType )
  4. {}
  5. Entity::~Entity()
  6. {}
  7. bool Entity::tick( double time )
  8. {
  9. // TODO: calculate rotation based on faceDir
  10. return Model3D::tick( time );
  11. }
  12. int Entity::getId() const
  13. {
  14. return id;
  15. }
  16. const EntityType* Entity::zType() const
  17. {
  18. return zEntityType;
  19. }
  20. int Entity::getCurrentDimension() const
  21. {
  22. return currentDimensionId;
  23. }