Added test classes for the networking and made so that the network engine sends object insted of raw data
This commit is contained in:
parent
a0363aa3d8
commit
16b9f1f265
11 changed files with 161 additions and 53 deletions
23
src/ei/engine/network/message/StringMessage.java
Normal file
23
src/ei/engine/network/message/StringMessage.java
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
package ei.engine.network.message;
|
||||
|
||||
public class StringMessage extends Message {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String msg;
|
||||
|
||||
public StringMessage(String msg){
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public String getString(){
|
||||
return msg;
|
||||
}
|
||||
|
||||
public void setString(String msg){
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
public String toString(){
|
||||
return getString();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue