Player.cpp 720 B

123456789101112131415161718192021222324252627282930
  1. #include "Player.h"
  2. Player::Player( Framework::Vec3<float> location, int dimensionId )
  3. : Entity( PlayerEntityType::INSTANCE, location, dimensionId )
  4. {}
  5. void Player::setName( Framework::Text name )
  6. {
  7. this->name = name;
  8. }
  9. const char *Player::getName() const
  10. {
  11. return name;
  12. }
  13. PlayerEntityType::PlayerEntityType()
  14. : EntityType( ID )
  15. {}
  16. void PlayerEntityType::loadSuperEntity( Entity *zEntity, Framework::StreamReader *zReader ) const
  17. {}
  18. void PlayerEntityType::saveSuperEntity( Entity *zEntity, Framework::StreamWriter *zWriter ) const
  19. {}
  20. Entity *PlayerEntityType::createEntity( Framework::Vec3<float> position, int dimensionId, Game *zTarget ) const
  21. {
  22. return new Player( position, dimensionId );
  23. }