-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #730 from Leo-ZLC/master
Showing
2 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...rc/main/java/edu/hzuapps/androidworks/homeworks/net1314080903142/Net1314080903142Dot.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package edu.hzuapps.androidworks.homeworks.net1314080903142; | ||
|
||
|
||
public class Net1314080903142Dot { | ||
|
||
int x,y; | ||
int status; | ||
|
||
public static final int STATUS_ON = 1; | ||
public static final int STATUS_OFF = 0; | ||
public static final int STATUS_IN = 9; | ||
|
||
public Net1314080903142Dot(int x, int y) { | ||
super(); | ||
this.x = x; | ||
this.y = y; | ||
status = STATUS_OFF; | ||
} | ||
|
||
public int getX() { | ||
return x; | ||
} | ||
|
||
public void setX(int x) { | ||
this.x = x; | ||
} | ||
|
||
public int getY() { | ||
return y; | ||
} | ||
|
||
public void setY(int y) { | ||
this.y = y; | ||
} | ||
|
||
public int getStatus() { | ||
return status; | ||
} | ||
|
||
public void setStatus(int status) { | ||
this.status = status; | ||
} | ||
|
||
public void setXY(int x,int y) { | ||
this.y = y; | ||
this.x = x; | ||
} | ||
|
||
|
||
} |