C# Class SpaceCats_v2.ObjectFactory

Mostrar archivo Open project: acm-team/SpaceCats

Public Methods

Method Description
AddObjectType ( int objectTypeID, SpaceCats_v2.GameObject defaultObject, bool isPooled, int initialSize ) : void
GetObject ( int objectTypeID ) : SpaceCats_v2.GameObject
Initialize ( ) : void
ReturnObject ( SpaceCats_v2.GameObject o ) : void

Method Details

AddObjectType() public static method

public static AddObjectType ( int objectTypeID, SpaceCats_v2.GameObject defaultObject, bool isPooled, int initialSize ) : void
objectTypeID int
defaultObject SpaceCats_v2.GameObject
isPooled bool
initialSize int
return void

GetObject() public static method

public static GetObject ( int objectTypeID ) : SpaceCats_v2.GameObject
objectTypeID int
return SpaceCats_v2.GameObject

Initialize() public static method

public static Initialize ( ) : void
return void

ReturnObject() public static method

public static ReturnObject ( SpaceCats_v2.GameObject o ) : void
o SpaceCats_v2.GameObject
return void