PlanBaseGetSpriteWithin Method |
Determines if the specified part of any active sprite in the specified category is within the plan's rectangle.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax public virtual int GetSpriteWithin(
SpriteCollection Sprites,
RelativePosition RelativePosition,
int Skip
)
Parameters
- Sprites
- Type: (Default Namespace)SpriteCollection
Sprite collection to be checked - RelativePosition
- Type: (Default Namespace)RelativePosition
Specifies a point within each sprite to test - Skip
- Type: SystemInt32
Indicates the index to skip over. All sprite indexes up to and including
Skip will be skipped in teh search. This allows the function to be called repeatedly,
passing the previous return value as the Skip value to retrieve the next applicable sprite
index. Specify -1 to search all sprites in the collection.
Return Value
Type:
Int32-1 if no active sprite is found in the collection where the specified point of the sprite's
solidity rectangle is within the plan's rectangle. Otherwise the 0-based index of the
first matching sprite is returned.
Remarks See Also