ViewSpellInt.cpp 568 B

123456789101112131415161718192021222324252627
  1. /*
  2. * ViewSpellInt.cpp, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #include "StdInc.h"
  11. #include "ViewSpellInt.h"
  12. #include "../mapObjects/CObjectHandler.h"
  13. ObjectPosInfo::ObjectPosInfo():
  14. pos(),id(Obj::NO_OBJ), subId(-1), owner(PlayerColor::CANNOT_DETERMINE)
  15. {
  16. }
  17. ObjectPosInfo::ObjectPosInfo(const CGObjectInstance * obj):
  18. pos(obj->pos),id(obj->ID), subId(obj->subID), owner(obj->tempOwner)
  19. {
  20. }