ViewSpellInt.cpp 518 B

12345678910111213141516171819202122232425
  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. VCMI_LIB_NAMESPACE_BEGIN
  14. ObjectPosInfo::ObjectPosInfo(const CGObjectInstance * obj):
  15. pos(obj->visitablePos()), id(obj->ID), subId(obj->subID), owner(obj->tempOwner)
  16. {
  17. }
  18. VCMI_LIB_NAMESPACE_END