Click or drag to resize
SpriteBase Constructor
Constructs a new sprite instance given all its base properties.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public SpriteBase(
	LayerBase layer,
	double x,
	double y,
	double dx,
	double dy,
	int state,
	int frame,
	bool active,
	Solidity solidity,
	int color
)

Parameters

layer
Type: (Default Namespace).LayerBase
Layer that contains the sprite.
x
Type: System.Double
Initial horizontal coordinate within the layer
y
Type: System.Double
Initial vertical coordinate within the layer
dx
Type: System.Double
Initial horizontal velocity
dy
Type: System.Double
Initial vertical velocity
state
Type: System.Int32
Initial state
frame
Type: System.Int32
Initial frame within the initial state
active
Type: System.Boolean
Determines if the sprite is initially active
solidity
Type: (Default Namespace).Solidity
Which solidity definition does the sprite initially react to
color
Type: System.Int32
Initial color modulation settings
Remarks

This cannot be called directly because SpriteBase is an abstract class, but it is called by the derived constructors on each individual sprite definition.

The sprite assumes that this is the layer to which it is added and will use it when looking for other objects or properties in the layer.

See Also