Changeset 3507
- Timestamp:
- 11/12/10 03:10:46 (3 years ago)
- Location:
- trunk/engine/core/util
- Files:
-
- 3 edited
-
resource/resource.i (modified) (4 diffs)
-
resource/resource_location.h (modified) (2 diffs)
-
structures/point.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/engine/core/util/resource/resource.i
r3469 r3507 1 1 /*************************************************************************** 2 * Copyright (C) 2005-20 08by the FIFE team *3 * http://www.fifengine. de*2 * Copyright (C) 2005-2010 by the FIFE team * 3 * http://www.fifengine.net * 4 4 * This file is part of FIFE. * 5 5 * * … … 30 30 namespace FIFE { 31 31 32 enum ResourceLocationType { 33 RES_TYPE_FILE = 0, 34 RES_TYPE_IMAGE = 1 35 }; 36 37 32 38 class ResourceLocation { 33 39 public: … … 38 44 virtual bool operator <(const ResourceLocation& loc) const; 39 45 virtual ResourceLocation* clone() const; 40 41 private: 42 ResourceLocation(const std::string& filename); 46 47 ResourceLocationType getType() const; 43 48 }; 44 49 … … 78 83 }; 79 84 80 81 enum { RES_LOADED = 0x01, RES_NON_LOADED = 0x02};82 83 85 class Pool { 84 86 public: -
trunk/engine/core/util/resource/resource_location.h
r2613 r3507 35 35 namespace FIFE { 36 36 37 #define RES_TYPE_FILE 0 38 #define RES_TYPE_IMAGE 1 37 enum ResourceLocationType { 38 RES_TYPE_FILE = 0, 39 RES_TYPE_IMAGE = 1 40 }; 39 41 40 42 /** Contains information about the Location of a Resource … … 98 100 } 99 101 100 intgetType() const { return m_type; }102 ResourceLocationType getType() const { return m_type; } 101 103 102 104 protected: 103 105 std::string m_filename; 104 intm_type;106 ResourceLocationType m_type; 105 107 }; 106 108 } //FIFE -
trunk/engine/core/util/structures/point.h
r3471 r3507 123 123 double sq; 124 124 sq = x*x + y*y; 125 return static_cast<T>( sqrt(sq));125 return static_cast<T>(Mathd::Sqrt(sq)); 126 126 } 127 127
Note: See TracChangeset
for help on using the changeset viewer.
