1 | /* |
---|
2 | orxonox - the future of 3D-vertical-scrollers |
---|
3 | |
---|
4 | Copyright (C) 2004 orx |
---|
5 | |
---|
6 | This program is free software; you can redistribute it and/or modify |
---|
7 | it under the terms of the GNU General Public License as published by |
---|
8 | the Free Software Foundation; either version 2, or (at your option) |
---|
9 | any later version. |
---|
10 | |
---|
11 | ### File Specific: |
---|
12 | main-programmer: Benjamin Grauer |
---|
13 | co-programmer: ... |
---|
14 | */ |
---|
15 | |
---|
16 | #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_LOADING |
---|
17 | |
---|
18 | #include "resource.h" |
---|
19 | |
---|
20 | |
---|
21 | namespace Loading |
---|
22 | { |
---|
23 | Resource::SharedResource::SharedResource() |
---|
24 | { |
---|
25 | this->referenceCount = 1; |
---|
26 | this->type = CL_NULL; |
---|
27 | this->prio = RP_NO; |
---|
28 | } |
---|
29 | |
---|
30 | |
---|
31 | /** |
---|
32 | * standard constructor |
---|
33 | */ |
---|
34 | Resource::Resource (const std::string& fileName, ResourcePriority prio) |
---|
35 | { |
---|
36 | this->setClassID(CL_RESOURCE, "Resource"); |
---|
37 | this->resource = NULL; |
---|
38 | |
---|
39 | } |
---|
40 | |
---|
41 | /** |
---|
42 | * standard deconstructor |
---|
43 | */ |
---|
44 | // Resource::~Resource () |
---|
45 | // { |
---|
46 | // } |
---|
47 | |
---|
48 | |
---|
49 | bool Resource::load(std::string& fileName, ResourcePriority prio, |
---|
50 | const MultiType& param0, const MultiType& param1, const MultiType& param2) |
---|
51 | {} |
---|
52 | bool Resource::cache(std::string& fileName, ResourcePriority prio, |
---|
53 | const MultiType& param0, const MultiType& param1, const MultiType& param2) |
---|
54 | {} |
---|
55 | |
---|
56 | |
---|
57 | // reloads the resource. |
---|
58 | // bool Resource::reload() |
---|
59 | // {} |
---|
60 | // unloads the sharedResource (from this Resource) |
---|
61 | bool Resource::unload() |
---|
62 | {} |
---|
63 | |
---|
64 | // checks if a resource was already loaded. |
---|
65 | bool Resource::isLoaded(std::string& fileName, |
---|
66 | const MultiType& param0, const MultiType& param1, const MultiType& param2) |
---|
67 | {} |
---|
68 | |
---|
69 | // raises the priority can only be raised |
---|
70 | void Resource::raisePriority(ResourcePriority prio) |
---|
71 | {} |
---|
72 | |
---|
73 | // const SharedResource* findResource(std::string& fileName, |
---|
74 | // const MultiType& param0, const MultiType& param1, const MultiType& param2) |
---|
75 | // { |
---|
76 | // } |
---|
77 | |
---|
78 | |
---|
79 | } |
---|