I have a class called "CursorAA" which needs to connect to both "BlackTile" and "WhiteTile", but I don't know how to make a constructor that will connect to both.
Below I have added some of the code that may be helpful:
CursorAA()
BlackTile()
This shows what methods I would call from CursorAA
WhiteTile()
This shows what methods I would call from CursorAA
World()
Any help would be very helpful.
Ask if you think you need more of the code.
private BlackTile blacktile;
public CursorAA(BlackTile pointBlackTile)
{
blacktile = pointBlackTile;
}public void SetClear()
{
setImage("BlackClear.jpg");
}
public void SetBlackCastle()
{
setImage("Black_Castle Black_Tile.jpg");
}public void SetClear()
{
setImage("WhiteClear.jpg");
}
public void SetBlackCastle()
{
setImage("Black_Castle White_Tile.jpg");
}CursorAA cursoraa = new CursorAA(blacktile);
addObject(cursoraa, 45, 49);

