Game Development Reference
In-Depth Information
private boolean up, down, left, right, wKey , aKey , sKey ,
dKey ;
The eight method structures NetBeans generates at the end of your class look like
the following Java code:
public boolean iswKey() {
return wKey;
}
public void setwKey(boolean wKey) {
this.wKey = wKey;
}
public boolean isaKey() {
return aKey;
}
public void setaKey(boolean aKey) {
this.aKey = aKey;
}
public boolean issKey() {
return sKey;
}
public void setsKey(boolean sKey) {
this.sKey = sKey;
}
public boolean isdKey() {
return dKey;
}
public void setdKey(boolean dKey) {
this.dKey = dKey;
}
Search WWH ::




Custom Search