Package de.ailis.xadrian.data

Examples of de.ailis.xadrian.data.Ware


                    Integer.parseInt(element.attributeValue("maxPrice"));
                final int volume =
                    Integer.parseInt(element.attributeValue("volume"));
                final Container container =
                    Container.valueOf(element.attributeValue("container"));
                final Ware ware =
                    new Ware(this.game, id, minPrice, avgPrice, maxPrice,
                        volume, container);
                this.wares.add(ware);
                this.wareMap.put(id, ware);
            }
        }
View Full Code Here


                    .attributeValue("price"));
                final int volume = Integer.parseInt(element
                    .attributeValue("volume"));

                final Element productElement = element.element("product");
                final Ware productWare = wareFactory.getWare(productElement
                    .attributeValue("ware"));
                final int productQuantity = Integer.parseInt(productElement
                    .attributeValue("quantity"));
                final Product product = new Product(productWare,
                    productQuantity);

                final List<?> resItems = element.elements("resource");
                final Product[] resources = new Product[resItems.size()];
                final Capacity[] storage = new Capacity[resItems.size() + 1];
                storage[0] = new Capacity(product.getWare(), Integer
                    .parseInt(productElement.attributeValue("storage")));
                int i = 0;
                for (final Object resItem : resItems)
                {
                    final Element resElement = (Element) resItem;
                    final Ware resWare = wareFactory.getWare(resElement
                        .attributeValue("ware"));
                    final int resQuantity = Integer.parseInt(resElement
                        .attributeValue("quantity"));
                    final int resStorage = Integer.parseInt(resElement
                        .attributeValue("storage"));
View Full Code Here

                    .attributeValue("x"));
                final int astY = Integer.parseInt(asteroidElement
                    .attributeValue("y"));
                final int astZ = Integer.parseInt(asteroidElement
                    .attributeValue("z"));
                final Ware ware = this.game.getWareFactory().getWare(
                    asteroidElement
                        .attributeValue("ware"));
                final Asteroid asteroid = new Asteroid(asteroidId,
                    ware, yield, astX, astY, astZ);
                asteroids[i] = asteroid;
View Full Code Here

TOP

Related Classes of de.ailis.xadrian.data.Ware

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.