C# Class ShipFunctions

Inheritance: MonoBehaviour
Datei anzeigen Open project: drakelinglabs/unityarmada Class Usage Examples

Public Properties

Property Type Description
gridSize float

Public Methods

Method Description
RelSnapToGrid ( Vector2 pos ) : Vector2
SetNextId ( GameInfo, gameInfo, Ship, ship ) : void
getCaptainName ( ushort team ) : string
getMothership ( GameObject myGO ) : GameObject
getMothership ( ushort team ) : GameObject
getShip ( GameObject myGO ) : Ship,
getShip ( int shipID ) : Ship,
getShipGO ( GameObject myGO ) : GameObject
isMothership ( GameObject myGO ) : bool
partOverlappingShip ( GameObject part ) : bool
partsOverlappingShip ( List parts ) : bool

Method Details

RelSnapToGrid() public static method

public static RelSnapToGrid ( Vector2 pos ) : Vector2
pos Vector2
return Vector2

SetNextId() public static method

public static SetNextId ( GameInfo, gameInfo, Ship, ship ) : void
gameInfo GameInfo,
ship Ship,
return void

getCaptainName() public static method

public static getCaptainName ( ushort team ) : string
team ushort
return string

getMothership() public static method

public static getMothership ( GameObject myGO ) : GameObject
myGO GameObject
return GameObject

getMothership() public static method

public static getMothership ( ushort team ) : GameObject
team ushort
return GameObject

getShip() public static method

public static getShip ( GameObject myGO ) : Ship,
myGO GameObject
return Ship,

getShip() public static method

public static getShip ( int shipID ) : Ship,
shipID int
return Ship,

getShipGO() public static method

public static getShipGO ( GameObject myGO ) : GameObject
myGO GameObject
return GameObject

isMothership() public static method

public static isMothership ( GameObject myGO ) : bool
myGO GameObject
return bool

partOverlappingShip() public static method

public static partOverlappingShip ( GameObject part ) : bool
part GameObject
return bool

partsOverlappingShip() public static method

public static partsOverlappingShip ( List parts ) : bool
parts List
return bool

Property Details

gridSize public_oe static_oe property

public static float gridSize
return float