Core API Reference: Shape Brothers

From Color Infection Wiki

Jump to: navigation, search


Contents


Get Shape Brothers

Get all the shapes in a brothers group

Input Parameters:

One Borther Shape
one shape in the brothers group

Output Parameters:

Brothers
an array contains all the shapes in the brothers group, including the input shape.
Are Two Shapes Brothers

Whether or not 2 shapes are in the same one brothers group

Input Parameters:

Shape 1
shape 1
Shape 2
shape 2

Output Parameters:

Brothers?
brothers or not
Make Brothers

Make 2 shapes as brothers. All of their each original brothers will also be brothers.

Input Parameters:

Shape 1
shape 1
Shape 2
shape 2

Output Parameters:

(none)
Break Away From Brothers

Break away from brothers group.

Input Parameters:

The Shape to Break Away
the shape

Output Parameters:

(none)
Break Away Then Make Brothers

Combination of "Break Away From Brothers" and "Make Brothers".

Input Parameters:

Shape 1
the shape to break away
Shape 2
the shape to make friends with shape 1

Output Parameters:

(none)
Breakup All Brothers

Break up a brothers group into individual single shape groups

Input Parameters:

One Borther Shape
one shape in the brothers group

Output Parameters:

(none)
Destroy Brothers Group

Destroy all the shapes in a brothers group

Input Parameters:

One Borther Shape
one shape in the brothers group

Output Parameters:

(none)
Personal tools