Re: Rename furniture

by enkonyito » Fri Sep 28, 2018 5:17 pm

As shown in the user's guide , a selected piece of furniture has a rectangular outline (1 center and 4 corners).

Which translates into coding:

Code: Select all

[b]getX[/b]
public float getX()
// Returns the abscissa of the center of this piece of furniture.

[b]getY[/b]
public float getY()
// Returns the ordinate of the center of this piece of furniture.

[b]getPoints[/b]
public float[][] getPoints()
// Returns the points of each corner of a piece.
So just change the outline of the room to take into account the renaming of the piece of furniture (in bold).
Image