source: scenarios/GerminationX/fungi/src/Resources.hx @ 987

Revision 987, 14.4 KB checked in by dave, 10 years ago (diff)

new plants and butterflies

Line 
1// GerminationX Copyright (C) 2010 FoAM vzw    \_\ __     /\
2//                                          /\    /_/    / / 
3// This program is free software: you can redistribute it and/or modify
4// it under the terms of the GNU Affero General Public License as
5// published by the Free Software Foundation, either version 3 of the
6// License, or (at your option) any later version.
7//
8// This program is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11// GNU Affero General Public License for more details.
12//
13// You should have received a copy of the GNU Affero General Public License
14// along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
16
17//#if flash
18
19import flash.display.BitmapData;
20import truffle.Truffle;
21
22class BlueCubeTex extends BitmapData { public function new() { super(0,0); } }
23class Test extends BitmapData { public function new() { super(0,0); } }
24
25class SeedTex extends BitmapData { public function new() { super(0,0); } }
26
27class Arr1Tex extends BitmapData { public function new() { super(0,0); } }
28class Arr2Tex extends BitmapData { public function new() { super(0,0); } }
29class Arr3Tex extends BitmapData { public function new() { super(0,0); } }
30class Arr4Tex extends BitmapData { public function new() { super(0,0); } }
31
32class Plant000GrowATex extends BitmapData { public function new() { super(0,0); } }
33class Plant000GrowBTex extends BitmapData { public function new() { super(0,0); } }
34class Plant000GrowCTex extends BitmapData { public function new() { super(0,0); } }
35class Plant000GrownTex extends BitmapData { public function new() { super(0,0); } }
36class Plant000DecayATex extends BitmapData { public function new() { super(0,0); } }
37class Plant000DecayBTex extends BitmapData { public function new() { super(0,0); } }
38class Plant000DecayCTex extends BitmapData { public function new() { super(0,0); } }
39class Plant000IllATex extends BitmapData { public function new() { super(0,0); } }
40class Plant000IllBTex extends BitmapData { public function new() { super(0,0); } }
41class Plant000IllCTex extends BitmapData { public function new() { super(0,0); } }
42class Plant000FruitATex extends BitmapData { public function new() { super(0,0); } }
43class Plant000FruitBTex extends BitmapData { public function new() { super(0,0); } }
44class Plant000FruitCTex extends BitmapData { public function new() { super(0,0); } }
45
46class RockCube01Tex extends BitmapData { public function new() { super(0,0); } }
47class RockCube02Tex extends BitmapData { public function new() { super(0,0); } }
48class RockCube03Tex extends BitmapData { public function new() { super(0,0); } }
49class RockCube04Tex extends BitmapData { public function new() { super(0,0); } }
50class RockCube05Tex extends BitmapData { public function new() { super(0,0); } }
51class RockCube06Tex extends BitmapData { public function new() { super(0,0); } }
52
53class Plant001GrowATex extends BitmapData { public function new() { super(0,0); } }
54class Plant001GrowBTex extends BitmapData { public function new() { super(0,0); } }
55class Plant001GrowCTex extends BitmapData { public function new() { super(0,0); } }
56class Plant001GrownTex extends BitmapData { public function new() { super(0,0); } }
57class Plant001DecayATex extends BitmapData { public function new() { super(0,0); } }
58class Plant001DecayBTex extends BitmapData { public function new() { super(0,0); } }
59class Plant001DecayCTex extends BitmapData { public function new() { super(0,0); } }
60class Plant001IllATex extends BitmapData { public function new() { super(0,0); } }
61class Plant001IllBTex extends BitmapData { public function new() { super(0,0); } }
62class Plant001IllCTex extends BitmapData { public function new() { super(0,0); } }
63class Plant001FruitATex extends BitmapData { public function new() { super(0,0); } }
64class Plant001FruitBTex extends BitmapData { public function new() { super(0,0); } }
65class Plant001FruitCTex extends BitmapData { public function new() { super(0,0); } }
66
67class Plant002GrowATex extends BitmapData { public function new() { super(0,0); } }
68class Plant002GrowBTex extends BitmapData { public function new() { super(0,0); } }
69class Plant002GrowCTex extends BitmapData { public function new() { super(0,0); } }
70class Plant002GrownTex extends BitmapData { public function new() { super(0,0); } }
71class Plant002DecayATex extends BitmapData { public function new() { super(0,0); } }
72class Plant002DecayBTex extends BitmapData { public function new() { super(0,0); } }
73class Plant002DecayCTex extends BitmapData { public function new() { super(0,0); } }
74class Plant002IllATex extends BitmapData { public function new() { super(0,0); } }
75class Plant002IllBTex extends BitmapData { public function new() { super(0,0); } }
76class Plant002IllCTex extends BitmapData { public function new() { super(0,0); } }
77class Plant002FruitATex extends BitmapData { public function new() { super(0,0); } }
78class Plant002FruitBTex extends BitmapData { public function new() { super(0,0); } }
79class Plant002FruitCTex extends BitmapData { public function new() { super(0,0); } }
80
81class Plant003GrowATex extends BitmapData { public function new() { super(0,0); } }
82class Plant003GrowBTex extends BitmapData { public function new() { super(0,0); } }
83class Plant003GrowCTex extends BitmapData { public function new() { super(0,0); } }
84class Plant003GrownTex extends BitmapData { public function new() { super(0,0); } }
85class Plant003DecayATex extends BitmapData { public function new() { super(0,0); } }
86class Plant003DecayBTex extends BitmapData { public function new() { super(0,0); } }
87class Plant003DecayCTex extends BitmapData { public function new() { super(0,0); } }
88class Plant003IllATex extends BitmapData { public function new() { super(0,0); } }
89class Plant003IllBTex extends BitmapData { public function new() { super(0,0); } }
90class Plant003IllCTex extends BitmapData { public function new() { super(0,0); } }
91class Plant003FruitATex extends BitmapData { public function new() { super(0,0); } }
92class Plant003FruitBTex extends BitmapData { public function new() { super(0,0); } }
93class Plant003FruitCTex extends BitmapData { public function new() { super(0,0); } }
94
95class CherryGrowATex extends BitmapData { public function new() { super(0,0); } }
96class CherryGrowBTex extends BitmapData { public function new() { super(0,0); } }
97class CherryGrowCTex extends BitmapData { public function new() { super(0,0); } }
98class CherryGrownTex extends BitmapData { public function new() { super(0,0); } }
99class CherryDecayATex extends BitmapData { public function new() { super(0,0); } }
100class CherryDecayBTex extends BitmapData { public function new() { super(0,0); } }
101class CherryDecayCTex extends BitmapData { public function new() { super(0,0); } }
102class CherryIllATex extends BitmapData { public function new() { super(0,0); } }
103class CherryIllBTex extends BitmapData { public function new() { super(0,0); } }
104class CherryIllCTex extends BitmapData { public function new() { super(0,0); } }
105class CherryFruitATex extends BitmapData { public function new() { super(0,0); } }
106class CherryFruitBTex extends BitmapData { public function new() { super(0,0); } }
107class CherryFruitCTex extends BitmapData { public function new() { super(0,0); } }
108
109class AppleGrowATex extends BitmapData { public function new() { super(0,0); } }
110class AppleGrowBTex extends BitmapData { public function new() { super(0,0); } }
111class AppleGrowCTex extends BitmapData { public function new() { super(0,0); } }
112class AppleGrownTex extends BitmapData { public function new() { super(0,0); } }
113class AppleDecayATex extends BitmapData { public function new() { super(0,0); } }
114class AppleDecayBTex extends BitmapData { public function new() { super(0,0); } }
115class AppleDecayCTex extends BitmapData { public function new() { super(0,0); } }
116class AppleIllATex extends BitmapData { public function new() { super(0,0); } }
117class AppleIllBTex extends BitmapData { public function new() { super(0,0); } }
118class AppleIllCTex extends BitmapData { public function new() { super(0,0); } }
119class AppleFruitATex extends BitmapData { public function new() { super(0,0); } }
120class AppleFruitBTex extends BitmapData { public function new() { super(0,0); } }
121class AppleFruitCTex extends BitmapData { public function new() { super(0,0); } }
122
123class WingTex extends BitmapData { public function new() { super(0,0); } }
124
125
126class Resources
127{
128    public static function Get(name:String) : TextureDesc
129    {
130        var tex = new TextureDesc();
131        tex.data = new BlueCubeTex();
132
133        switch(name)
134        {
135        case "blue-cube": tex.data = new BlueCubeTex();
136        case "test": tex.data = new Test();
137        case "seed": tex.data = new SeedTex();
138
139        case "arr1": tex.data = new Arr1Tex();
140        case "arr2": tex.data = new Arr2Tex();
141        case "arr3": tex.data = new Arr3Tex();
142        case "arr4": tex.data = new Arr4Tex();
143
144        case "plant-000-grow-a": tex.data = new Plant000GrowATex();
145        case "plant-000-grow-b": tex.data = new Plant000GrowBTex();
146        case "plant-000-grow-c": tex.data = new Plant000GrowCTex();
147        case "plant-000-grown": tex.data = new Plant000GrownTex();
148        case "plant-000-ill-a": tex.data = new Plant000IllATex();
149        case "plant-000-ill-b": tex.data = new Plant000IllBTex();
150        case "plant-000-ill-c": tex.data = new Plant000IllCTex();
151        case "plant-000-decay-a": tex.data = new Plant000DecayATex();
152        case "plant-000-decay-b": tex.data = new Plant000DecayBTex();
153        case "plant-000-decay-c": tex.data = new Plant000DecayCTex();
154        case "plant-000-fruit-a": tex.data = new Plant000FruitATex();
155        case "plant-000-fruit-b": tex.data = new Plant000FruitBTex();
156        case "plant-000-fruit-c": tex.data = new Plant000FruitCTex();
157
158        case "rock-cube-01": tex.data = new RockCube01Tex();
159        case "rock-cube-02": tex.data = new RockCube02Tex();
160        case "rock-cube-03": tex.data = new RockCube03Tex();
161        case "rock-cube-04": tex.data = new RockCube04Tex();
162        case "rock-cube-05": tex.data = new RockCube05Tex();
163        case "rock-cube-06": tex.data = new RockCube06Tex();
164
165        case "plant-001-grow-a": tex.data = new Plant001GrowATex();
166        case "plant-001-grow-b": tex.data = new Plant001GrowBTex();
167        case "plant-001-grow-c": tex.data = new Plant001GrowCTex();
168        case "plant-001-grown": tex.data = new Plant001GrownTex();
169        case "plant-001-ill-a": tex.data = new Plant001IllATex();
170        case "plant-001-ill-b": tex.data = new Plant001IllBTex();
171        case "plant-001-ill-c": tex.data = new Plant001IllCTex();
172        case "plant-001-decay-a": tex.data = new Plant001DecayATex();
173        case "plant-001-decay-b": tex.data = new Plant001DecayBTex();
174        case "plant-001-decay-c": tex.data = new Plant001DecayCTex();
175        case "plant-001-fruit-a": tex.data = new Plant001FruitATex();
176        case "plant-001-fruit-b": tex.data = new Plant001FruitBTex();
177        case "plant-001-fruit-c": tex.data = new Plant001FruitCTex();
178
179        case "plant-002-grow-a": tex.data = new Plant002GrowATex();
180        case "plant-002-grow-b": tex.data = new Plant002GrowBTex();
181        case "plant-002-grow-c": tex.data = new Plant002GrowCTex();
182        case "plant-002-grown": tex.data = new Plant002GrownTex();
183        case "plant-002-ill-a": tex.data = new Plant002IllATex();
184        case "plant-002-ill-b": tex.data = new Plant002IllBTex();
185        case "plant-002-ill-c": tex.data = new Plant002IllCTex();
186        case "plant-002-decay-a": tex.data = new Plant002DecayATex();
187        case "plant-002-decay-b": tex.data = new Plant002DecayBTex();
188        case "plant-002-decay-c": tex.data = new Plant002DecayCTex();
189        case "plant-002-fruit-a": tex.data = new Plant002FruitATex();
190        case "plant-002-fruit-b": tex.data = new Plant002FruitBTex();
191        case "plant-002-fruit-c": tex.data = new Plant002FruitCTex();
192
193        case "plant-003-grow-a": tex.data = new Plant003GrowATex();
194        case "plant-003-grow-b": tex.data = new Plant003GrowBTex();
195        case "plant-003-grow-c": tex.data = new Plant003GrowCTex();
196        case "plant-003-grown": tex.data = new Plant003GrownTex();
197        case "plant-003-ill-a": tex.data = new Plant003IllATex();
198        case "plant-003-ill-b": tex.data = new Plant003IllBTex();
199        case "plant-003-ill-c": tex.data = new Plant003IllCTex();
200        case "plant-003-decay-a": tex.data = new Plant003DecayATex();
201        case "plant-003-decay-b": tex.data = new Plant003DecayBTex();
202        case "plant-003-decay-c": tex.data = new Plant003DecayCTex();
203        case "plant-003-fruit-a": tex.data = new Plant003FruitATex();
204        case "plant-003-fruit-b": tex.data = new Plant003FruitBTex();
205        case "plant-003-fruit-c": tex.data = new Plant003FruitCTex();
206
207        case "cherry-grow-a": tex.data = new CherryGrowATex();
208        case "cherry-grow-b": tex.data = new CherryGrowBTex();
209        case "cherry-grow-c": tex.data = new CherryGrowCTex();
210        case "cherry-grown": tex.data = new CherryGrownTex();
211        case "cherry-ill-a": tex.data = new CherryIllATex();
212        case "cherry-ill-b": tex.data = new CherryIllBTex();
213        case "cherry-ill-c": tex.data = new CherryIllCTex();
214        case "cherry-decay-a": tex.data = new CherryDecayATex();
215        case "cherry-decay-b": tex.data = new CherryDecayBTex();
216        case "cherry-decay-c": tex.data = new CherryDecayCTex();
217        case "cherry-fruit-a": tex.data = new CherryFruitATex();
218        case "cherry-fruit-b": tex.data = new CherryFruitBTex();
219        case "cherry-fruit-c": tex.data = new CherryFruitCTex();
220 
221        case "apple-grow-a": tex.data = new AppleGrowATex();
222        case "apple-grow-b": tex.data = new AppleGrowBTex();
223        case "apple-grow-c": tex.data = new AppleGrowCTex();
224        case "apple-grown": tex.data = new AppleGrownTex();
225        case "apple-ill-a": tex.data = new AppleIllATex();
226        case "apple-ill-b": tex.data = new AppleIllBTex();
227        case "apple-ill-c": tex.data = new AppleIllCTex();
228        case "apple-decay-a": tex.data = new AppleDecayATex();
229        case "apple-decay-b": tex.data = new AppleDecayBTex();
230        case "apple-decay-c": tex.data = new AppleDecayCTex();
231        case "apple-fruit-a": tex.data = new AppleFruitATex();
232        case "apple-fruit-b": tex.data = new AppleFruitBTex();
233        case "apple-fruit-c": tex.data = new AppleFruitCTex();
234
235        case "wing": tex.data = new WingTex();
236        }
237
238        return tex;
239    }
240}
241
242/*#else
243
244class Resources
245{
246    public function Get(name:String)
247    {
248        return name+".png";
249    }
250}
251
252#end*/
Note: See TracBrowser for help on using the repository browser.