ch.sahits.game.openpatrician.model.ship
Class ShipFactory

java.lang.Object
  extended by ch.sahits.game.openpatrician.model.ship.ShipFactory

public class ShipFactory
extends Object

This factory class creates ship instances.

Author:
Andi Hotz, (c) Sahits GmbH, 2011 Created on Nov 19, 2011

Constructor Summary
ShipFactory()
           
 
Method Summary
static ICog createCog(String name, EShipUpgrade upgradeLevel, int value)
          Create a cog with the given name.
static ICog createCog(String name, int value)
          Create a a cog with the given name.
static ICrayer createCrayer(String name, EShipUpgrade upgradeLevel, int value)
          Create a crayer with the given name.
static ICrayer createCrayer(String name, int value)
          Create a a crayer with the given name.
static IHolk createHolk(String name, EShipUpgrade upgradeLevel, int value)
          Create a holk with the given name.
static IHolk createHolk(String name, int value)
          Create a a holk with the given name.
static ISnaikka createSnaikka(String name, EShipUpgrade upgradeLevel, int value)
          Create a snaikka with the given name.
static ISnaikka createSnaikka(String name, int value)
          Create a a snaikka with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShipFactory

public ShipFactory()
Method Detail

createCrayer

public static ICrayer createCrayer(String name,
                                   int value)
Create a a crayer with the given name. The crayer is not upgraded

Parameters:
name -
Returns:

createCrayer

public static ICrayer createCrayer(String name,
                                   EShipUpgrade upgradeLevel,
                                   int value)
Create a crayer with the given name. The crayer is upgraded to the specified level

Parameters:
name -
upgradeLevel -
Returns:

createSnaikka

public static ISnaikka createSnaikka(String name,
                                     int value)
Create a a snaikka with the given name. The snaikka is not upgraded

Parameters:
name -
Returns:

createSnaikka

public static ISnaikka createSnaikka(String name,
                                     EShipUpgrade upgradeLevel,
                                     int value)
Create a snaikka with the given name. The snaikka is upgraded to the specified level

Parameters:
name -
upgradeLevel -
Returns:

createCog

public static ICog createCog(String name,
                             int value)
Create a a cog with the given name. The cog is not upgraded

Parameters:
name -
Returns:

createCog

public static ICog createCog(String name,
                             EShipUpgrade upgradeLevel,
                             int value)
Create a cog with the given name. The cog is upgraded to the specified level

Parameters:
name -
upgradeLevel -
Returns:

createHolk

public static IHolk createHolk(String name,
                               int value)
Create a a holk with the given name. The holk is not upgraded

Parameters:
name -
Returns:

createHolk

public static IHolk createHolk(String name,
                               EShipUpgrade upgradeLevel,
                               int value)
Create a holk with the given name. The holk is upgraded to the specified level

Parameters:
name -
upgradeLevel -
Returns:


Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.