Hello everyone,
I am making a maze and i want to combine a rotation with a corner image in one class. so you have 90,180,270,360 degree. I hope someone can help me.
public Wall()
{
setRotation(0);
}
public Wall(int options)
{
/**
* The variable has different options from 1 to 5
*/
if(options==1)
{
setRotation(90);
}
if(options==2)
{
setRotation(180);
}
if(options==3)
{
setRotation(270);
}
if(options==4)
{
setRotation(360);
}
if(options==5)
{
setImage("corner.png");
}
}
public Wall(int options, int options2)
{
/**
* I want to combine option 5 to the other options
*/
if(Wall()){
options=options;
}
else{
options2=options;
}
}
}
