I'm trying to use interfaces, so that I can have two similar types of object, handled by a single "manager" class.
In this instance it's going to be "zombie" and "civilian" both implementing "creature"
One of the member functions, needs another custom type passing in as a parameter, in this case, an array of type "building"
I've managed to get all the methods that use standard objects, and processing objects to work, jsut not with custom ones.
here's a code snippet:
Code:public interface creature
{
public void draw(PImage radar);
public void move(building[] city);
public boolean hit(float _x, float _y, float damage);
}
this gives the following error:
Code::/Documents and Settings/Administrator/Application Data/Processing/build/Temporary_7679_1028.java:648:20:648:27: Semantic Error: The static type "Temporary_7679_1028$creature" must use a qualified name to access the non-static member type "Temporary_7679_1028$building" of the enclosing type "Temporary_7679_1028".
Now Java isn't my primary language, so I'm having trouble deciphering the error to know what I need to change about the interface, or about my "building" class to make it available for use, so any pointers will be gratefully recieved.