PolyResource.cpp 584 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * PolyResource.cpp
  3. * Poly
  4. *
  5. * Created by Ivan Safrin on 9/19/08.
  6. * Copyright 2008 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. #include "PolyResource.h"
  10. using namespace Polycode;
  11. Resource::Resource(int type) {
  12. this->type = type;
  13. }
  14. Resource::~Resource() {
  15. }
  16. String Resource::getResourceName() {
  17. return name;
  18. }
  19. int Resource::getResourceType() {
  20. return type;
  21. }
  22. void Resource::setResourceName(String newName) {
  23. name = newName;
  24. }
  25. void Resource::setResourcePath(String path) {
  26. resourcePath = path;
  27. }
  28. String Resource::getResourcePath() {
  29. return resourcePath;
  30. }