Core API Reference: Shape Type Judgment

From Color Infection Wiki

Jump to: navigation, search


Contents


Is a Circle?

Whether or not a shape is a circle shape.

Input Parameters:

The Shape
the shape

Output Parameters:

Is Circle?
circle shape or not
Is a Rectangle?

Whether or not a shape is a rectangle shape.

Input Parameters:

The Shape
the shape

Output Parameters:

Is Rectangle?
rectangle shape or not
Is a Polygon?

Whether or not a shape is a polygon shape.

Input Parameters:

The Shape
the shape

Output Parameters:

Is Polygon?
polygon shape or not
Is a Polyline?

Whether or not a shape is a polyline shape.

Input Parameters:

The Shape
the shape

Output Parameters:

Is Polyline?
polyline shape or not
Is a Bomb Shape?

Whether or not a shape is a bomb shape.

Input Parameters:

The Shape
the shape

Output Parameters:

Is Bomb?
bomb shape or not
Is a World Border?

Whether or not a shape is one of the 4 world border shapes.

Input Parameters:

The Shape
the shape

Output Parameters:

Is World Border?
border shape or not
Personal tools