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

Revision 976, 10.7 KB checked in by dave, 10 years ago (diff)

critters added and clamped excitement

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 WingTex extends BitmapData { public function new() { super(0,0); } }
96
97
98class Resources
99{
100    public static function Get(name:String) : TextureDesc
101    {
102        var tex = new TextureDesc();
103        tex.data = new BlueCubeTex();
104
105        switch(name)
106        {
107        case "blue-cube": tex.data = new BlueCubeTex();
108        case "test": tex.data = new Test();
109        case "seed": tex.data = new SeedTex();
110
111        case "arr1": tex.data = new Arr1Tex();
112        case "arr2": tex.data = new Arr2Tex();
113        case "arr3": tex.data = new Arr3Tex();
114        case "arr4": tex.data = new Arr4Tex();
115
116        case "plant-000-grow-a": tex.data = new Plant000GrowATex();
117        case "plant-000-grow-b": tex.data = new Plant000GrowBTex();
118        case "plant-000-grow-c": tex.data = new Plant000GrowCTex();
119        case "plant-000-grown": tex.data = new Plant000GrownTex();
120        case "plant-000-ill-a": tex.data = new Plant000IllATex();
121        case "plant-000-ill-b": tex.data = new Plant000IllBTex();
122        case "plant-000-ill-c": tex.data = new Plant000IllCTex();
123        case "plant-000-decay-a": tex.data = new Plant000DecayATex();
124        case "plant-000-decay-b": tex.data = new Plant000DecayBTex();
125        case "plant-000-decay-c": tex.data = new Plant000DecayCTex();
126        case "plant-000-fruit-a": tex.data = new Plant000FruitATex();
127        case "plant-000-fruit-b": tex.data = new Plant000FruitBTex();
128        case "plant-000-fruit-c": tex.data = new Plant000FruitCTex();
129
130        case "rock-cube-01": tex.data = new RockCube01Tex();
131        case "rock-cube-02": tex.data = new RockCube02Tex();
132        case "rock-cube-03": tex.data = new RockCube03Tex();
133        case "rock-cube-04": tex.data = new RockCube04Tex();
134        case "rock-cube-05": tex.data = new RockCube05Tex();
135        case "rock-cube-06": tex.data = new RockCube06Tex();
136
137        case "plant-001-grow-a": tex.data = new Plant001GrowATex();
138        case "plant-001-grow-b": tex.data = new Plant001GrowBTex();
139        case "plant-001-grow-c": tex.data = new Plant001GrowCTex();
140        case "plant-001-grown": tex.data = new Plant001GrownTex();
141        case "plant-001-ill-a": tex.data = new Plant001IllATex();
142        case "plant-001-ill-b": tex.data = new Plant001IllBTex();
143        case "plant-001-ill-c": tex.data = new Plant001IllCTex();
144        case "plant-001-decay-a": tex.data = new Plant001DecayATex();
145        case "plant-001-decay-b": tex.data = new Plant001DecayBTex();
146        case "plant-001-decay-c": tex.data = new Plant001DecayCTex();
147        case "plant-001-fruit-a": tex.data = new Plant001FruitATex();
148        case "plant-001-fruit-b": tex.data = new Plant001FruitBTex();
149        case "plant-001-fruit-c": tex.data = new Plant001FruitCTex();
150
151        case "plant-002-grow-a": tex.data = new Plant002GrowATex();
152        case "plant-002-grow-b": tex.data = new Plant002GrowBTex();
153        case "plant-002-grow-c": tex.data = new Plant002GrowCTex();
154        case "plant-002-grown": tex.data = new Plant002GrownTex();
155        case "plant-002-ill-a": tex.data = new Plant002IllATex();
156        case "plant-002-ill-b": tex.data = new Plant002IllBTex();
157        case "plant-002-ill-c": tex.data = new Plant002IllCTex();
158        case "plant-002-decay-a": tex.data = new Plant002DecayATex();
159        case "plant-002-decay-b": tex.data = new Plant002DecayBTex();
160        case "plant-002-decay-c": tex.data = new Plant002DecayCTex();
161        case "plant-002-fruit-a": tex.data = new Plant002FruitATex();
162        case "plant-002-fruit-b": tex.data = new Plant002FruitBTex();
163        case "plant-002-fruit-c": tex.data = new Plant002FruitCTex();
164
165        case "plant-003-grow-a": tex.data = new Plant003GrowATex();
166        case "plant-003-grow-b": tex.data = new Plant003GrowBTex();
167        case "plant-003-grow-c": tex.data = new Plant003GrowCTex();
168        case "plant-003-grown": tex.data = new Plant003GrownTex();
169        case "plant-003-ill-a": tex.data = new Plant003IllATex();
170        case "plant-003-ill-b": tex.data = new Plant003IllBTex();
171        case "plant-003-ill-c": tex.data = new Plant003IllCTex();
172        case "plant-003-decay-a": tex.data = new Plant003DecayATex();
173        case "plant-003-decay-b": tex.data = new Plant003DecayBTex();
174        case "plant-003-decay-c": tex.data = new Plant003DecayCTex();
175        case "plant-003-fruit-a": tex.data = new Plant003FruitATex();
176        case "plant-003-fruit-b": tex.data = new Plant003FruitBTex();
177        case "plant-003-fruit-c": tex.data = new Plant003FruitCTex();
178
179        case "wing": tex.data = new WingTex();
180        }
181
182        return tex;
183    }
184}
185
186/*#else
187
188class Resources
189{
190    public function Get(name:String)
191    {
192        return name+".png";
193    }
194}
195
196#end*/
Note: See TracBrowser for help on using the repository browser.