Project: * Clean-up (Eclipse cruft, unused files, etc...) * Git-specific changes * Maven POMs clean-up and changes for the build system * Version set to 1.0.0-0 in the development branches * Maven plug-ins updated to latest versions * Very partial dev. documentation added
This commit is contained in:
parent
c74e30d5ba
commit
0665a760de
1439 changed files with 1020 additions and 1649 deletions
legacyworlds-server-data/src
main
java/com/deepclone/lw/sqld
accounts
admin
game
AllianceMembership.javaBuildingOutputType.javaEmpireTechLine.javaEmpireTechnology.javaGeneralInformation.javaMapData.javaPlanetData.javaRawFleetOwner.javaRawFleetShip.javaRawStaticFleet.java
battle
i18n
msgs
AdminEventRecord.javaAllianceEventRecord.javaBugEventRecord.javaEmpireEventRecord.javaEventRecord.javaEventType.javaEventTypeRecord.javaFleetEventFleet.javaFleetEventRecord.javaFormatType.javaInboxRecord.javaMessageDataRecord.javaNotificationsRecord.javaPlanetEventRecord.javaQueueEventLocation.javaQueueEventRecord.javaTextMessageRecord.java
sys
resources/configuration
test
|
@ -0,0 +1,251 @@
|
|||
package com.deepclone.lw.sqld.accounts;
|
||||
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
import com.deepclone.lw.cmd.admin.users.AccountStatus;
|
||||
|
||||
|
||||
|
||||
public class Account
|
||||
{
|
||||
|
||||
private int id;
|
||||
|
||||
private String address;
|
||||
|
||||
private String language;
|
||||
|
||||
private String passMd5;
|
||||
|
||||
private String passSha1;
|
||||
|
||||
private int gameCredits;
|
||||
|
||||
private AccountStatus status;
|
||||
|
||||
private String validationToken;
|
||||
|
||||
private String pwdRecoveryToken;
|
||||
|
||||
private String addressChangeToken;
|
||||
|
||||
private String newAddress;
|
||||
|
||||
private Integer vacationCredits;
|
||||
|
||||
private Integer vacationTime;
|
||||
|
||||
private Timestamp vacationStart;
|
||||
|
||||
private Timestamp inactivityStart;
|
||||
|
||||
private String inactivityReason;
|
||||
|
||||
private Integer banRequestId;
|
||||
|
||||
|
||||
public int getId( )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId( int id )
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public String getAddress( )
|
||||
{
|
||||
return address;
|
||||
}
|
||||
|
||||
|
||||
public void setAddress( String address )
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
|
||||
public String getLanguage( )
|
||||
{
|
||||
return language;
|
||||
}
|
||||
|
||||
|
||||
public void setLanguage( String language )
|
||||
{
|
||||
this.language = language;
|
||||
}
|
||||
|
||||
|
||||
public String getPassMd5( )
|
||||
{
|
||||
return passMd5;
|
||||
}
|
||||
|
||||
|
||||
public void setPassMd5( String passMd5 )
|
||||
{
|
||||
this.passMd5 = passMd5;
|
||||
}
|
||||
|
||||
|
||||
public String getPassSha1( )
|
||||
{
|
||||
return passSha1;
|
||||
}
|
||||
|
||||
|
||||
public void setPassSha1( String passSha1 )
|
||||
{
|
||||
this.passSha1 = passSha1;
|
||||
}
|
||||
|
||||
|
||||
public int getGameCredits( )
|
||||
{
|
||||
return gameCredits;
|
||||
}
|
||||
|
||||
|
||||
public void setGameCredits( int gameCredits )
|
||||
{
|
||||
this.gameCredits = gameCredits;
|
||||
}
|
||||
|
||||
|
||||
public AccountStatus getStatus( )
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
public void setStatus( AccountStatus status )
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
||||
public String getValidationToken( )
|
||||
{
|
||||
return validationToken;
|
||||
}
|
||||
|
||||
|
||||
public void setValidationToken( String validationToken )
|
||||
{
|
||||
this.validationToken = validationToken;
|
||||
}
|
||||
|
||||
|
||||
public String getPwdRecoveryToken( )
|
||||
{
|
||||
return pwdRecoveryToken;
|
||||
}
|
||||
|
||||
|
||||
public void setPwdRecoveryToken( String pwdRecoveryToken )
|
||||
{
|
||||
this.pwdRecoveryToken = pwdRecoveryToken;
|
||||
}
|
||||
|
||||
|
||||
public String getAddressChangeToken( )
|
||||
{
|
||||
return addressChangeToken;
|
||||
}
|
||||
|
||||
|
||||
public void setAddressChangeToken( String addressChangeToken )
|
||||
{
|
||||
this.addressChangeToken = addressChangeToken;
|
||||
}
|
||||
|
||||
|
||||
public String getNewAddress( )
|
||||
{
|
||||
return newAddress;
|
||||
}
|
||||
|
||||
|
||||
public void setNewAddress( String newAddress )
|
||||
{
|
||||
this.newAddress = newAddress;
|
||||
}
|
||||
|
||||
|
||||
public Integer getVacationCredits( )
|
||||
{
|
||||
return vacationCredits;
|
||||
}
|
||||
|
||||
|
||||
public void setVacationCredits( Integer vacationCredits )
|
||||
{
|
||||
this.vacationCredits = vacationCredits;
|
||||
}
|
||||
|
||||
|
||||
public Integer getVacationTime( )
|
||||
{
|
||||
return vacationTime;
|
||||
}
|
||||
|
||||
|
||||
public void setVacationTime( Integer vacationTime )
|
||||
{
|
||||
this.vacationTime = vacationTime;
|
||||
}
|
||||
|
||||
|
||||
public Timestamp getVacationStart( )
|
||||
{
|
||||
return vacationStart;
|
||||
}
|
||||
|
||||
|
||||
public void setVacationStart( Timestamp vacationStart )
|
||||
{
|
||||
this.vacationStart = vacationStart;
|
||||
}
|
||||
|
||||
|
||||
public Timestamp getInactivityStart( )
|
||||
{
|
||||
return inactivityStart;
|
||||
}
|
||||
|
||||
|
||||
public void setInactivityStart( Timestamp inactivityStart )
|
||||
{
|
||||
this.inactivityStart = inactivityStart;
|
||||
}
|
||||
|
||||
|
||||
public String getInactivityReason( )
|
||||
{
|
||||
return inactivityReason;
|
||||
}
|
||||
|
||||
|
||||
public void setInactivityReason( String inactivityReason )
|
||||
{
|
||||
this.inactivityReason = inactivityReason;
|
||||
}
|
||||
|
||||
|
||||
public Integer getBanRequestId( )
|
||||
{
|
||||
return banRequestId;
|
||||
}
|
||||
|
||||
|
||||
public void setBanRequestId( Integer banRequestId )
|
||||
{
|
||||
this.banRequestId = banRequestId;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
package com.deepclone.lw.sqld.accounts;
|
||||
|
||||
|
||||
public class AccountOperationResult
|
||||
{
|
||||
|
||||
private Account account;
|
||||
|
||||
private int errorCode;
|
||||
|
||||
|
||||
public Account getAccount( )
|
||||
{
|
||||
return account;
|
||||
}
|
||||
|
||||
|
||||
public void setAccount( Account account )
|
||||
{
|
||||
this.account = account;
|
||||
}
|
||||
|
||||
|
||||
public int getErrorCode( )
|
||||
{
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
|
||||
public void setErrorCode( int errorCode )
|
||||
{
|
||||
this.errorCode = errorCode;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,47 @@
|
|||
package com.deepclone.lw.sqld.accounts;
|
||||
|
||||
|
||||
public class QuittingAccount
|
||||
{
|
||||
|
||||
private int id;
|
||||
private String address;
|
||||
private String language;
|
||||
|
||||
|
||||
public int getId( )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId( int id )
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public String getAddress( )
|
||||
{
|
||||
return address;
|
||||
}
|
||||
|
||||
|
||||
public void setAddress( String address )
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
|
||||
public String getLanguage( )
|
||||
{
|
||||
return language;
|
||||
}
|
||||
|
||||
|
||||
public void setLanguage( String language )
|
||||
{
|
||||
this.language = language;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
package com.deepclone.lw.sqld.accounts;
|
||||
|
||||
|
||||
public class ValidationResult
|
||||
{
|
||||
private int accountError;
|
||||
private int empireError;
|
||||
private int planetError;
|
||||
|
||||
|
||||
public int getAccountError( )
|
||||
{
|
||||
return accountError;
|
||||
}
|
||||
|
||||
|
||||
public void setAccountError( int accountError )
|
||||
{
|
||||
this.accountError = accountError;
|
||||
}
|
||||
|
||||
|
||||
public int getEmpireError( )
|
||||
{
|
||||
return empireError;
|
||||
}
|
||||
|
||||
|
||||
public void setEmpireError( int empireError )
|
||||
{
|
||||
this.empireError = empireError;
|
||||
}
|
||||
|
||||
|
||||
public int getPlanetError( )
|
||||
{
|
||||
return planetError;
|
||||
}
|
||||
|
||||
|
||||
public void setPlanetError( int planetError )
|
||||
{
|
||||
this.planetError = planetError;
|
||||
}
|
||||
|
||||
|
||||
public boolean isError( )
|
||||
{
|
||||
return ( this.planetError != 0 || this.empireError != 0 || this.accountError != 0 );
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
package com.deepclone.lw.sqld.admin;
|
||||
|
||||
|
||||
public enum AdminConnection {
|
||||
|
||||
SUCCESS ,
|
||||
PASSWORD ,
|
||||
INACTIVE
|
||||
|
||||
}
|
|
@ -0,0 +1,126 @@
|
|||
package com.deepclone.lw.sqld.admin;
|
||||
|
||||
|
||||
public class AdminRecord
|
||||
{
|
||||
|
||||
private int id;
|
||||
private String name;
|
||||
private int privileges;
|
||||
private boolean active;
|
||||
|
||||
private Integer account;
|
||||
private String address;
|
||||
private String pSha1;
|
||||
private String pMd5;
|
||||
private Boolean passChangeRequired;
|
||||
|
||||
|
||||
public int getId( )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId( int id )
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public int getPrivileges( )
|
||||
{
|
||||
return privileges;
|
||||
}
|
||||
|
||||
|
||||
public void setPrivileges( int privileges )
|
||||
{
|
||||
this.privileges = privileges;
|
||||
}
|
||||
|
||||
|
||||
public boolean isActive( )
|
||||
{
|
||||
return active;
|
||||
}
|
||||
|
||||
|
||||
public void setActive( boolean active )
|
||||
{
|
||||
this.active = active;
|
||||
}
|
||||
|
||||
|
||||
public Integer getAccount( )
|
||||
{
|
||||
return account;
|
||||
}
|
||||
|
||||
|
||||
public void setAccount( Integer account )
|
||||
{
|
||||
this.account = account;
|
||||
}
|
||||
|
||||
|
||||
public String getAddress( )
|
||||
{
|
||||
return address;
|
||||
}
|
||||
|
||||
|
||||
public void setAddress( String address )
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
|
||||
public String getpSha1( )
|
||||
{
|
||||
return pSha1;
|
||||
}
|
||||
|
||||
|
||||
public void setpSha1( String pSha1 )
|
||||
{
|
||||
this.pSha1 = pSha1;
|
||||
}
|
||||
|
||||
|
||||
public String getpMd5( )
|
||||
{
|
||||
return pMd5;
|
||||
}
|
||||
|
||||
|
||||
public void setpMd5( String pMd5 )
|
||||
{
|
||||
this.pMd5 = pMd5;
|
||||
}
|
||||
|
||||
|
||||
public Boolean getPassChangeRequired( )
|
||||
{
|
||||
return passChangeRequired;
|
||||
}
|
||||
|
||||
|
||||
public void setPassChangeRequired( Boolean passChangeRequired )
|
||||
{
|
||||
this.passChangeRequired = passChangeRequired;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
package com.deepclone.lw.sqld.game;
|
||||
|
||||
|
||||
public class AllianceMembership
|
||||
{
|
||||
|
||||
private int allianceId;
|
||||
|
||||
private boolean pending;
|
||||
|
||||
|
||||
public int getAllianceId( )
|
||||
{
|
||||
return allianceId;
|
||||
}
|
||||
|
||||
|
||||
public void setAllianceId( int allianceId )
|
||||
{
|
||||
this.allianceId = allianceId;
|
||||
}
|
||||
|
||||
|
||||
public boolean isPending( )
|
||||
{
|
||||
return pending;
|
||||
}
|
||||
|
||||
|
||||
public void setPending( boolean pending )
|
||||
{
|
||||
this.pending = pending;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
package com.deepclone.lw.sqld.game;
|
||||
|
||||
|
||||
public enum BuildingOutputType {
|
||||
|
||||
WORK ,
|
||||
CASH ,
|
||||
DEF ,
|
||||
POP
|
||||
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
package com.deepclone.lw.sqld.game;
|
||||
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
public class EmpireTechLine
|
||||
{
|
||||
private int id;
|
||||
|
||||
private String name;
|
||||
|
||||
private String description;
|
||||
|
||||
private List< EmpireTechnology > technologies = new LinkedList< EmpireTechnology >( );
|
||||
|
||||
|
||||
public int getId( )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId( int id )
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public String getDescription( )
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
|
||||
public void setDescription( String description )
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
|
||||
public List< EmpireTechnology > getTechnologies( )
|
||||
{
|
||||
return technologies;
|
||||
}
|
||||
|
||||
|
||||
public void addTechnology( EmpireTechnology eTech )
|
||||
{
|
||||
this.technologies.add( eTech );
|
||||
}
|
||||
}
|
|
@ -0,0 +1,90 @@
|
|||
package com.deepclone.lw.sqld.game;
|
||||
|
||||
|
||||
public class EmpireTechnology
|
||||
{
|
||||
private int line;
|
||||
|
||||
private String name;
|
||||
|
||||
private String description;
|
||||
|
||||
private boolean implemented;
|
||||
|
||||
private int progress;
|
||||
|
||||
private int cost;
|
||||
|
||||
|
||||
public int getLine( )
|
||||
{
|
||||
return line;
|
||||
}
|
||||
|
||||
|
||||
public void setLine( int line )
|
||||
{
|
||||
this.line = line;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public String getDescription( )
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
|
||||
public void setDescription( String description )
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
|
||||
public boolean isImplemented( )
|
||||
{
|
||||
return implemented;
|
||||
}
|
||||
|
||||
|
||||
public void setImplemented( boolean implemented )
|
||||
{
|
||||
this.implemented = implemented;
|
||||
}
|
||||
|
||||
|
||||
public int getProgress( )
|
||||
{
|
||||
return progress;
|
||||
}
|
||||
|
||||
|
||||
public void setProgress( int progress )
|
||||
{
|
||||
this.progress = progress;
|
||||
}
|
||||
|
||||
|
||||
public int getCost( )
|
||||
{
|
||||
return cost;
|
||||
}
|
||||
|
||||
|
||||
public void setCost( int cost )
|
||||
{
|
||||
this.cost = cost;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
package com.deepclone.lw.sqld.game;
|
||||
|
||||
|
||||
public class GeneralInformation
|
||||
{
|
||||
|
||||
private Character status;
|
||||
|
||||
private String name;
|
||||
|
||||
private String tag;
|
||||
|
||||
private long cash;
|
||||
|
||||
private long nextTick;
|
||||
|
||||
private int accountId;
|
||||
|
||||
|
||||
public GeneralInformation( Character status , String name , String tag , long cash , long nextTick , int accountId )
|
||||
{
|
||||
this.status = status;
|
||||
this.name = name;
|
||||
this.tag = tag;
|
||||
this.cash = cash;
|
||||
this.nextTick = nextTick;
|
||||
this.accountId = accountId;
|
||||
}
|
||||
|
||||
|
||||
public Character getStatus( )
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public String getTag( )
|
||||
{
|
||||
return tag;
|
||||
}
|
||||
|
||||
|
||||
public long getCash( )
|
||||
{
|
||||
return cash;
|
||||
}
|
||||
|
||||
|
||||
public long getNextTick( )
|
||||
{
|
||||
return nextTick;
|
||||
}
|
||||
|
||||
|
||||
public int getAccountId( )
|
||||
{
|
||||
return accountId;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,119 @@
|
|||
package com.deepclone.lw.sqld.game;
|
||||
|
||||
|
||||
public class MapData
|
||||
{
|
||||
|
||||
private int x;
|
||||
|
||||
private int y;
|
||||
|
||||
private int orbit;
|
||||
|
||||
private int id;
|
||||
|
||||
private int picture;
|
||||
|
||||
private String name;
|
||||
|
||||
private String tag;
|
||||
|
||||
private String display;
|
||||
|
||||
|
||||
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 getOrbit( )
|
||||
{
|
||||
return orbit;
|
||||
}
|
||||
|
||||
|
||||
public void setOrbit( int orbit )
|
||||
{
|
||||
this.orbit = orbit;
|
||||
}
|
||||
|
||||
|
||||
public int getId( )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId( int id )
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public int getPicture( )
|
||||
{
|
||||
return picture;
|
||||
}
|
||||
|
||||
|
||||
public void setPicture( int picture )
|
||||
{
|
||||
this.picture = picture;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public String getTag( )
|
||||
{
|
||||
return tag;
|
||||
}
|
||||
|
||||
|
||||
public void setTag( String tag )
|
||||
{
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
|
||||
public String getDisplay( )
|
||||
{
|
||||
return display;
|
||||
}
|
||||
|
||||
|
||||
public void setDisplay( String display )
|
||||
{
|
||||
this.display = display;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,293 @@
|
|||
package com.deepclone.lw.sqld.game;
|
||||
|
||||
|
||||
public final class PlanetData
|
||||
{
|
||||
public static enum AccessType {
|
||||
BASIC ,
|
||||
PRESENT ,
|
||||
OWNER
|
||||
}
|
||||
|
||||
public static class Basic
|
||||
{
|
||||
private AccessType access;
|
||||
private int x;
|
||||
private int y;
|
||||
private int orbit;
|
||||
private int picture;
|
||||
private String name;
|
||||
private String tag;
|
||||
|
||||
|
||||
public AccessType getAccess( )
|
||||
{
|
||||
return access;
|
||||
}
|
||||
|
||||
|
||||
public void setAccess( AccessType access )
|
||||
{
|
||||
this.access = access;
|
||||
}
|
||||
|
||||
|
||||
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 getOrbit( )
|
||||
{
|
||||
return orbit;
|
||||
}
|
||||
|
||||
|
||||
public void setOrbit( int orbit )
|
||||
{
|
||||
this.orbit = orbit;
|
||||
}
|
||||
|
||||
|
||||
public int getPicture( )
|
||||
{
|
||||
return picture;
|
||||
}
|
||||
|
||||
|
||||
public void setPicture( int picture )
|
||||
{
|
||||
this.picture = picture;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public String getTag( )
|
||||
{
|
||||
return tag;
|
||||
}
|
||||
|
||||
|
||||
public void setTag( String tag )
|
||||
{
|
||||
this.tag = tag;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Orbital
|
||||
{
|
||||
private long population;
|
||||
private long defence;
|
||||
private long ownPower;
|
||||
private long friendlyPower;
|
||||
private long hostilePower;
|
||||
private Long battle;
|
||||
|
||||
|
||||
public long getPopulation( )
|
||||
{
|
||||
return population;
|
||||
}
|
||||
|
||||
|
||||
public void setPopulation( long population )
|
||||
{
|
||||
this.population = population;
|
||||
}
|
||||
|
||||
|
||||
public long getDefence( )
|
||||
{
|
||||
return defence;
|
||||
}
|
||||
|
||||
|
||||
public void setDefence( long defence )
|
||||
{
|
||||
this.defence = defence;
|
||||
}
|
||||
|
||||
|
||||
public long getOwnPower( )
|
||||
{
|
||||
return ownPower;
|
||||
}
|
||||
|
||||
|
||||
public void setOwnPower( Long ownPower )
|
||||
{
|
||||
this.ownPower = ( ownPower == null ) ? 0 : ownPower.longValue( );
|
||||
}
|
||||
|
||||
|
||||
public long getFriendlyPower( )
|
||||
{
|
||||
return friendlyPower;
|
||||
}
|
||||
|
||||
|
||||
public void setFriendlyPower( Long friendlyPower )
|
||||
{
|
||||
this.friendlyPower = ( friendlyPower == null ) ? 0 : friendlyPower.longValue( );
|
||||
}
|
||||
|
||||
|
||||
public long getHostilePower( )
|
||||
{
|
||||
return hostilePower;
|
||||
}
|
||||
|
||||
|
||||
public void setHostilePower( Long hostilePower )
|
||||
{
|
||||
this.hostilePower = ( hostilePower == null ) ? 0 : hostilePower.longValue( );
|
||||
}
|
||||
|
||||
|
||||
public Long getBattle( )
|
||||
{
|
||||
return battle;
|
||||
}
|
||||
|
||||
|
||||
public void setBattle( Long battle )
|
||||
{
|
||||
this.battle = battle;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Owner
|
||||
{
|
||||
private int happiness;
|
||||
private int hChange;
|
||||
private long income;
|
||||
private long upkeep;
|
||||
private boolean renamePossible;
|
||||
private boolean abandonPossible;
|
||||
private Integer abandonTime;
|
||||
|
||||
|
||||
public int getHappiness( )
|
||||
{
|
||||
return happiness;
|
||||
}
|
||||
|
||||
|
||||
public void setHappiness( int happiness )
|
||||
{
|
||||
this.happiness = happiness;
|
||||
}
|
||||
|
||||
|
||||
public int gethChange( )
|
||||
{
|
||||
return hChange;
|
||||
}
|
||||
|
||||
|
||||
public void sethChange( int hChange )
|
||||
{
|
||||
this.hChange = hChange;
|
||||
}
|
||||
|
||||
|
||||
public long getIncome( )
|
||||
{
|
||||
return income;
|
||||
}
|
||||
|
||||
|
||||
public void setIncome( long income )
|
||||
{
|
||||
this.income = income;
|
||||
}
|
||||
|
||||
|
||||
public long getUpkeep( )
|
||||
{
|
||||
return upkeep;
|
||||
}
|
||||
|
||||
|
||||
public void setUpkeep( long upkeep )
|
||||
{
|
||||
this.upkeep = upkeep;
|
||||
}
|
||||
|
||||
|
||||
public boolean isRenamePossible( )
|
||||
{
|
||||
return renamePossible;
|
||||
}
|
||||
|
||||
|
||||
public void setRenamePossible( boolean renamePossible )
|
||||
{
|
||||
this.renamePossible = renamePossible;
|
||||
}
|
||||
|
||||
|
||||
public boolean isAbandonPossible( )
|
||||
{
|
||||
return abandonPossible;
|
||||
}
|
||||
|
||||
|
||||
public void setAbandonPossible( boolean abandonPossible )
|
||||
{
|
||||
this.abandonPossible = abandonPossible;
|
||||
}
|
||||
|
||||
|
||||
public Integer getAbandonTime( )
|
||||
{
|
||||
return abandonTime;
|
||||
}
|
||||
|
||||
|
||||
public void setAbandonTime( Integer abandonTime )
|
||||
{
|
||||
this.abandonTime = abandonTime;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
private PlanetData( )
|
||||
{
|
||||
// EMPTY
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,59 @@
|
|||
package com.deepclone.lw.sqld.game;
|
||||
|
||||
|
||||
public class RawFleetOwner
|
||||
{
|
||||
|
||||
private int location;
|
||||
private int id;
|
||||
private String name;
|
||||
private String relation;
|
||||
|
||||
|
||||
public int getLocation( )
|
||||
{
|
||||
return location;
|
||||
}
|
||||
|
||||
|
||||
public void setLocation( int location )
|
||||
{
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
|
||||
public int getId( )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId( int id )
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public String getRelation( )
|
||||
{
|
||||
return relation;
|
||||
}
|
||||
|
||||
|
||||
public void setRelation( String relation )
|
||||
{
|
||||
this.relation = relation;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,73 @@
|
|||
package com.deepclone.lw.sqld.game;
|
||||
|
||||
|
||||
public class RawFleetShip
|
||||
{
|
||||
|
||||
private long fleet;
|
||||
private int shipType;
|
||||
private int amount;
|
||||
private int power;
|
||||
private String name;
|
||||
|
||||
|
||||
public long getFleet( )
|
||||
{
|
||||
return fleet;
|
||||
}
|
||||
|
||||
|
||||
public void setFleet( long fleet )
|
||||
{
|
||||
this.fleet = fleet;
|
||||
}
|
||||
|
||||
|
||||
public int getShipType( )
|
||||
{
|
||||
return shipType;
|
||||
}
|
||||
|
||||
|
||||
public void setShipType( int shipType )
|
||||
{
|
||||
this.shipType = shipType;
|
||||
}
|
||||
|
||||
|
||||
public int getAmount( )
|
||||
{
|
||||
return amount;
|
||||
}
|
||||
|
||||
|
||||
public void setAmount( int amount )
|
||||
{
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
|
||||
public int getPower( )
|
||||
{
|
||||
return power;
|
||||
}
|
||||
|
||||
|
||||
public void setPower( int power )
|
||||
{
|
||||
this.power = power;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,111 @@
|
|||
package com.deepclone.lw.sqld.game;
|
||||
|
||||
|
||||
public class RawStaticFleet
|
||||
{
|
||||
private int owner;
|
||||
private int location;
|
||||
private long id;
|
||||
private String name;
|
||||
private String status;
|
||||
private int penalty;
|
||||
private long power;
|
||||
private int flightTime;
|
||||
|
||||
|
||||
public int getOwner( )
|
||||
{
|
||||
return owner;
|
||||
}
|
||||
|
||||
|
||||
public void setOwner( int owner )
|
||||
{
|
||||
this.owner = owner;
|
||||
}
|
||||
|
||||
|
||||
public int getLocation( )
|
||||
{
|
||||
return location;
|
||||
}
|
||||
|
||||
|
||||
public void setLocation( int location )
|
||||
{
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
|
||||
public long getId( )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId( long id )
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public String getStatus( )
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
public void setStatus( String status )
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
||||
public int getPenalty( )
|
||||
{
|
||||
return penalty;
|
||||
}
|
||||
|
||||
|
||||
public void setPenalty( int penalty )
|
||||
{
|
||||
this.penalty = penalty;
|
||||
}
|
||||
|
||||
|
||||
public long getPower( )
|
||||
{
|
||||
return power;
|
||||
}
|
||||
|
||||
|
||||
public void setPower( long power )
|
||||
{
|
||||
this.power = power;
|
||||
}
|
||||
|
||||
|
||||
public int getFlightTime( )
|
||||
{
|
||||
return flightTime;
|
||||
}
|
||||
|
||||
|
||||
public void setFlightTime( int flightTime )
|
||||
{
|
||||
this.flightTime = flightTime;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,137 @@
|
|||
package com.deepclone.lw.sqld.game.battle;
|
||||
|
||||
|
||||
public class BattleListRecord
|
||||
{
|
||||
private long battle;
|
||||
private int planetId;
|
||||
private int x;
|
||||
private int y;
|
||||
private int orbit;
|
||||
private String name;
|
||||
private long firstTick;
|
||||
private Long lastTick;
|
||||
private boolean finished;
|
||||
private long lastUpdate;
|
||||
|
||||
|
||||
public long getBattle( )
|
||||
{
|
||||
return battle;
|
||||
}
|
||||
|
||||
|
||||
public void setBattle( long battle )
|
||||
{
|
||||
this.battle = battle;
|
||||
}
|
||||
|
||||
|
||||
public int getPlanetId( )
|
||||
{
|
||||
return planetId;
|
||||
}
|
||||
|
||||
|
||||
public void setPlanetId( int planetId )
|
||||
{
|
||||
this.planetId = planetId;
|
||||
}
|
||||
|
||||
|
||||
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 getOrbit( )
|
||||
{
|
||||
return orbit;
|
||||
}
|
||||
|
||||
|
||||
public void setOrbit( int orbit )
|
||||
{
|
||||
this.orbit = orbit;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public long getFirstTick( )
|
||||
{
|
||||
return firstTick;
|
||||
}
|
||||
|
||||
|
||||
public void setFirstTick( long firstTick )
|
||||
{
|
||||
this.firstTick = firstTick;
|
||||
}
|
||||
|
||||
|
||||
public Long getLastTick( )
|
||||
{
|
||||
return lastTick;
|
||||
}
|
||||
|
||||
|
||||
public void setLastTick( Long lastTick )
|
||||
{
|
||||
this.lastTick = lastTick;
|
||||
}
|
||||
|
||||
|
||||
public boolean isFinished( )
|
||||
{
|
||||
return finished;
|
||||
}
|
||||
|
||||
|
||||
public void setFinished( boolean finished )
|
||||
{
|
||||
this.finished = finished;
|
||||
}
|
||||
|
||||
|
||||
public long getLastUpdate( )
|
||||
{
|
||||
return lastUpdate;
|
||||
}
|
||||
|
||||
|
||||
public void setLastUpdate( long lastUpdate )
|
||||
{
|
||||
this.lastUpdate = lastUpdate;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,73 @@
|
|||
package com.deepclone.lw.sqld.game.battle;
|
||||
|
||||
|
||||
public class BuildingHistoryRecord
|
||||
{
|
||||
|
||||
private long tick;
|
||||
private String nature;
|
||||
private long current;
|
||||
private long lost;
|
||||
private long power;
|
||||
|
||||
|
||||
public long getTick( )
|
||||
{
|
||||
return tick;
|
||||
}
|
||||
|
||||
|
||||
public void setTick( long tick )
|
||||
{
|
||||
this.tick = tick;
|
||||
}
|
||||
|
||||
|
||||
public String getNature( )
|
||||
{
|
||||
return nature;
|
||||
}
|
||||
|
||||
|
||||
public void setNature( String nature )
|
||||
{
|
||||
this.nature = nature;
|
||||
}
|
||||
|
||||
|
||||
public long getCurrent( )
|
||||
{
|
||||
return current;
|
||||
}
|
||||
|
||||
|
||||
public void setCurrent( long current )
|
||||
{
|
||||
this.current = current;
|
||||
}
|
||||
|
||||
|
||||
public long getLost( )
|
||||
{
|
||||
return lost;
|
||||
}
|
||||
|
||||
|
||||
public void setLost( long lost )
|
||||
{
|
||||
this.lost = lost;
|
||||
}
|
||||
|
||||
|
||||
public long getPower( )
|
||||
{
|
||||
return power;
|
||||
}
|
||||
|
||||
|
||||
public void setPower( long power )
|
||||
{
|
||||
this.power = power;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,138 @@
|
|||
package com.deepclone.lw.sqld.game.battle;
|
||||
|
||||
|
||||
public class EmpireBattleRecord
|
||||
{
|
||||
|
||||
private long battleId;
|
||||
private int empireId;
|
||||
private long protagonistId;
|
||||
private long firstTick;
|
||||
private Long lastTick;
|
||||
private String planetName;
|
||||
private int planetId;
|
||||
private int x;
|
||||
private int y;
|
||||
private int orbit;
|
||||
|
||||
|
||||
public long getBattleId( )
|
||||
{
|
||||
return battleId;
|
||||
}
|
||||
|
||||
|
||||
public void setBattleId( long battleId )
|
||||
{
|
||||
this.battleId = battleId;
|
||||
}
|
||||
|
||||
|
||||
public int getEmpireId( )
|
||||
{
|
||||
return empireId;
|
||||
}
|
||||
|
||||
|
||||
public void setEmpireId( int empireId )
|
||||
{
|
||||
this.empireId = empireId;
|
||||
}
|
||||
|
||||
|
||||
public long getProtagonistId( )
|
||||
{
|
||||
return protagonistId;
|
||||
}
|
||||
|
||||
|
||||
public void setProtagonistId( long protagonistId )
|
||||
{
|
||||
this.protagonistId = protagonistId;
|
||||
}
|
||||
|
||||
|
||||
public long getFirstTick( )
|
||||
{
|
||||
return firstTick;
|
||||
}
|
||||
|
||||
|
||||
public void setFirstTick( long firstTick )
|
||||
{
|
||||
this.firstTick = firstTick;
|
||||
}
|
||||
|
||||
|
||||
public Long getLastTick( )
|
||||
{
|
||||
return lastTick;
|
||||
}
|
||||
|
||||
|
||||
public void setLastTick( Long lastTick )
|
||||
{
|
||||
this.lastTick = lastTick;
|
||||
}
|
||||
|
||||
|
||||
public String getPlanetName( )
|
||||
{
|
||||
return planetName;
|
||||
}
|
||||
|
||||
|
||||
public void setPlanetName( String planetName )
|
||||
{
|
||||
this.planetName = planetName;
|
||||
}
|
||||
|
||||
|
||||
public int getPlanetId( )
|
||||
{
|
||||
return planetId;
|
||||
}
|
||||
|
||||
|
||||
public void setPlanetId( int planetId )
|
||||
{
|
||||
this.planetId = planetId;
|
||||
}
|
||||
|
||||
|
||||
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 getOrbit( )
|
||||
{
|
||||
return orbit;
|
||||
}
|
||||
|
||||
|
||||
public void setOrbit( int orbit )
|
||||
{
|
||||
this.orbit = orbit;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,59 @@
|
|||
package com.deepclone.lw.sqld.game.battle;
|
||||
|
||||
|
||||
public class EventItemRecord
|
||||
{
|
||||
private boolean planetEvent;
|
||||
private long eventId;
|
||||
private String nature;
|
||||
private int amount;
|
||||
|
||||
|
||||
public boolean isPlanetEvent( )
|
||||
{
|
||||
return planetEvent;
|
||||
}
|
||||
|
||||
|
||||
public void setPlanetEvent( boolean planetEvent )
|
||||
{
|
||||
this.planetEvent = planetEvent;
|
||||
}
|
||||
|
||||
|
||||
public long getEventId( )
|
||||
{
|
||||
return eventId;
|
||||
}
|
||||
|
||||
|
||||
public void setEventId( long eventId )
|
||||
{
|
||||
this.eventId = eventId;
|
||||
}
|
||||
|
||||
|
||||
public String getNature( )
|
||||
{
|
||||
return nature;
|
||||
}
|
||||
|
||||
|
||||
public void setNature( String nature )
|
||||
{
|
||||
this.nature = nature;
|
||||
}
|
||||
|
||||
|
||||
public int getAmount( )
|
||||
{
|
||||
return amount;
|
||||
}
|
||||
|
||||
|
||||
public void setAmount( int amount )
|
||||
{
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,86 @@
|
|||
package com.deepclone.lw.sqld.game.battle;
|
||||
|
||||
|
||||
public class EventRecord
|
||||
{
|
||||
|
||||
private long tick;
|
||||
private String eventType;
|
||||
private boolean planet;
|
||||
private Long eventId;
|
||||
private String name;
|
||||
private Boolean attack;
|
||||
|
||||
|
||||
public long getTick( )
|
||||
{
|
||||
return tick;
|
||||
}
|
||||
|
||||
|
||||
public void setTick( long tick )
|
||||
{
|
||||
this.tick = tick;
|
||||
}
|
||||
|
||||
|
||||
public String getEventType( )
|
||||
{
|
||||
return eventType;
|
||||
}
|
||||
|
||||
|
||||
public void setEventType( String eventType )
|
||||
{
|
||||
this.eventType = eventType;
|
||||
}
|
||||
|
||||
|
||||
public boolean isPlanet( )
|
||||
{
|
||||
return planet;
|
||||
}
|
||||
|
||||
|
||||
public void setPlanet( boolean planet )
|
||||
{
|
||||
this.planet = planet;
|
||||
}
|
||||
|
||||
|
||||
public Long getEventId( )
|
||||
{
|
||||
return eventId;
|
||||
}
|
||||
|
||||
|
||||
public void setEventId( Long eventId )
|
||||
{
|
||||
this.eventId = eventId;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public Boolean getAttack( )
|
||||
{
|
||||
return attack;
|
||||
}
|
||||
|
||||
|
||||
public void setAttack( Boolean attack )
|
||||
{
|
||||
this.attack = attack;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
package com.deepclone.lw.sqld.game.battle;
|
||||
|
||||
|
||||
public class PresenceRecord
|
||||
{
|
||||
private long tick;
|
||||
private boolean present;
|
||||
private boolean isPlanetOwner;
|
||||
|
||||
|
||||
public long getTick( )
|
||||
{
|
||||
return tick;
|
||||
}
|
||||
|
||||
|
||||
public void setTick( long tick )
|
||||
{
|
||||
this.tick = tick;
|
||||
}
|
||||
|
||||
|
||||
public boolean isPresent( )
|
||||
{
|
||||
return present;
|
||||
}
|
||||
|
||||
|
||||
public void setPresent( boolean present )
|
||||
{
|
||||
this.present = present;
|
||||
}
|
||||
|
||||
|
||||
public boolean isPlanetOwner( )
|
||||
{
|
||||
return isPlanetOwner;
|
||||
}
|
||||
|
||||
|
||||
public void setPlanetOwner( boolean isPlanetOwner )
|
||||
{
|
||||
this.isPlanetOwner = isPlanetOwner;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,73 @@
|
|||
package com.deepclone.lw.sqld.game.battle;
|
||||
|
||||
|
||||
public class ProtagonistRecord
|
||||
{
|
||||
|
||||
private long tick;
|
||||
private long protagonistId;
|
||||
private Long empireId;
|
||||
private String name;
|
||||
private boolean attacking;
|
||||
|
||||
|
||||
public long getTick( )
|
||||
{
|
||||
return tick;
|
||||
}
|
||||
|
||||
|
||||
public void setTick( long tick )
|
||||
{
|
||||
this.tick = tick;
|
||||
}
|
||||
|
||||
|
||||
public long getProtagonistId( )
|
||||
{
|
||||
return protagonistId;
|
||||
}
|
||||
|
||||
|
||||
public void setProtagonistId( long protagonistId )
|
||||
{
|
||||
this.protagonistId = protagonistId;
|
||||
}
|
||||
|
||||
|
||||
public Long getEmpireId( )
|
||||
{
|
||||
return empireId;
|
||||
}
|
||||
|
||||
|
||||
public void setEmpireId( Long empireId )
|
||||
{
|
||||
this.empireId = empireId;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public boolean isAttacking( )
|
||||
{
|
||||
return attacking;
|
||||
}
|
||||
|
||||
|
||||
public void setAttacking( boolean status )
|
||||
{
|
||||
this.attacking = status;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package com.deepclone.lw.sqld.game.battle;
|
||||
|
||||
|
||||
public class ShipHistoryRecord
|
||||
extends BuildingHistoryRecord
|
||||
{
|
||||
private long protagonist;
|
||||
|
||||
|
||||
public long getProtagonist( )
|
||||
{
|
||||
return protagonist;
|
||||
}
|
||||
|
||||
|
||||
public void setProtagonist( long protagonist )
|
||||
{
|
||||
this.protagonist = protagonist;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,60 @@
|
|||
package com.deepclone.lw.sqld.i18n;
|
||||
|
||||
|
||||
public class Translation
|
||||
{
|
||||
|
||||
private String languageId;
|
||||
private String languageName;
|
||||
private String stringId;
|
||||
private String translation;
|
||||
|
||||
|
||||
public String getLanguageId( )
|
||||
{
|
||||
return languageId;
|
||||
}
|
||||
|
||||
|
||||
public void setLanguageId( String languageId )
|
||||
{
|
||||
this.languageId = languageId;
|
||||
}
|
||||
|
||||
|
||||
public String getLanguageName( )
|
||||
{
|
||||
return languageName;
|
||||
}
|
||||
|
||||
|
||||
public void setLanguageName( String languageName )
|
||||
{
|
||||
this.languageName = languageName;
|
||||
}
|
||||
|
||||
|
||||
public String getStringId( )
|
||||
{
|
||||
return stringId;
|
||||
}
|
||||
|
||||
|
||||
public void setStringId( String stringId )
|
||||
{
|
||||
this.stringId = stringId;
|
||||
}
|
||||
|
||||
|
||||
public String getTranslation( )
|
||||
{
|
||||
return translation;
|
||||
}
|
||||
|
||||
|
||||
public void setTranslation( String translation )
|
||||
{
|
||||
this.translation = translation;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,61 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
public class AdminEventRecord
|
||||
extends EventRecord
|
||||
{
|
||||
|
||||
private Integer warnings;
|
||||
private Integer locationId;
|
||||
private String oldName;
|
||||
private String newName;
|
||||
|
||||
|
||||
public Integer getWarnings( )
|
||||
{
|
||||
return warnings;
|
||||
}
|
||||
|
||||
|
||||
public void setWarnings( Integer warnings )
|
||||
{
|
||||
this.warnings = warnings;
|
||||
}
|
||||
|
||||
|
||||
public Integer getLocationId( )
|
||||
{
|
||||
return locationId;
|
||||
}
|
||||
|
||||
|
||||
public void setLocationId( Integer locationId )
|
||||
{
|
||||
this.locationId = locationId;
|
||||
}
|
||||
|
||||
|
||||
public String getOldName( )
|
||||
{
|
||||
return oldName;
|
||||
}
|
||||
|
||||
|
||||
public void setOldName( String oldName )
|
||||
{
|
||||
this.oldName = oldName;
|
||||
}
|
||||
|
||||
|
||||
public String getNewName( )
|
||||
{
|
||||
return newName;
|
||||
}
|
||||
|
||||
|
||||
public void setNewName( String newName )
|
||||
{
|
||||
this.newName = newName;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,74 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
public class AllianceEventRecord
|
||||
extends EventRecord
|
||||
{
|
||||
|
||||
private Integer allianceId;
|
||||
private String allianceTag;
|
||||
private Integer empireId;
|
||||
private String empireName;
|
||||
private Boolean reqResult;
|
||||
|
||||
|
||||
public Integer getAllianceId( )
|
||||
{
|
||||
return allianceId;
|
||||
}
|
||||
|
||||
|
||||
public void setAllianceId( Integer allianceId )
|
||||
{
|
||||
this.allianceId = allianceId;
|
||||
}
|
||||
|
||||
|
||||
public String getAllianceTag( )
|
||||
{
|
||||
return allianceTag;
|
||||
}
|
||||
|
||||
|
||||
public void setAllianceTag( String allianceTag )
|
||||
{
|
||||
this.allianceTag = allianceTag;
|
||||
}
|
||||
|
||||
|
||||
public Integer getEmpireId( )
|
||||
{
|
||||
return empireId;
|
||||
}
|
||||
|
||||
|
||||
public void setEmpireId( Integer empireId )
|
||||
{
|
||||
this.empireId = empireId;
|
||||
}
|
||||
|
||||
|
||||
public String getEmpireName( )
|
||||
{
|
||||
return empireName;
|
||||
}
|
||||
|
||||
|
||||
public void setEmpireName( String empireName )
|
||||
{
|
||||
this.empireName = empireName;
|
||||
}
|
||||
|
||||
|
||||
public Boolean getReqResult( )
|
||||
{
|
||||
return reqResult;
|
||||
}
|
||||
|
||||
|
||||
public void setReqResult( Boolean reqResult )
|
||||
{
|
||||
this.reqResult = reqResult;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
public class BugEventRecord
|
||||
extends EventRecord
|
||||
{
|
||||
|
||||
private long reportId;
|
||||
private String submitter;
|
||||
private boolean admin;
|
||||
|
||||
|
||||
public long getReportId( )
|
||||
{
|
||||
return reportId;
|
||||
}
|
||||
|
||||
|
||||
public void setReportId( long reportId )
|
||||
{
|
||||
this.reportId = reportId;
|
||||
}
|
||||
|
||||
|
||||
public String getSubmitter( )
|
||||
{
|
||||
return submitter;
|
||||
}
|
||||
|
||||
|
||||
public void setSubmitter( String submitter )
|
||||
{
|
||||
this.submitter = submitter;
|
||||
}
|
||||
|
||||
|
||||
public boolean isAdmin( )
|
||||
{
|
||||
return admin;
|
||||
}
|
||||
|
||||
|
||||
public void setAdmin( boolean admin )
|
||||
{
|
||||
this.admin = admin;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
public class EmpireEventRecord
|
||||
extends EventRecord
|
||||
{
|
||||
private String tech;
|
||||
|
||||
|
||||
public String getTech( )
|
||||
{
|
||||
return tech;
|
||||
}
|
||||
|
||||
|
||||
public void setTech( String tech )
|
||||
{
|
||||
this.tech = tech;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
public abstract class EventRecord
|
||||
extends MessageDataRecord
|
||||
{
|
||||
private EventType type;
|
||||
private int subType;
|
||||
|
||||
|
||||
public EventRecord( )
|
||||
{
|
||||
super( true );
|
||||
}
|
||||
|
||||
|
||||
public EventType getType( )
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
public void setType( EventType type )
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
|
||||
public int getSubType( )
|
||||
{
|
||||
return subType;
|
||||
}
|
||||
|
||||
|
||||
public void setSubType( int subType )
|
||||
{
|
||||
this.subType = subType;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
public enum EventType {
|
||||
QUEUE ,
|
||||
EMPIRE ,
|
||||
FLEETS ,
|
||||
ALLIANCE ,
|
||||
PLANET ,
|
||||
ADMIN ,
|
||||
BUGS
|
||||
}
|
|
@ -0,0 +1,33 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
public class EventTypeRecord
|
||||
{
|
||||
private long id;
|
||||
private EventType type;
|
||||
|
||||
|
||||
public long getId( )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId( long id )
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public EventType getType( )
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
|
||||
public void setType( EventType type )
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,112 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
public class FleetEventFleet
|
||||
{
|
||||
|
||||
private long eventId;
|
||||
private Integer ownerId;
|
||||
private String ownerName;
|
||||
private String fleetName;
|
||||
private long fleetPower;
|
||||
private Boolean status;
|
||||
private Integer sourceId;
|
||||
private String sourceName;
|
||||
|
||||
|
||||
public long getEventId( )
|
||||
{
|
||||
return eventId;
|
||||
}
|
||||
|
||||
|
||||
public void setEventId( long eventId )
|
||||
{
|
||||
this.eventId = eventId;
|
||||
}
|
||||
|
||||
|
||||
public Integer getOwnerId( )
|
||||
{
|
||||
return ownerId;
|
||||
}
|
||||
|
||||
|
||||
public void setOwnerId( Integer ownerId )
|
||||
{
|
||||
this.ownerId = ownerId;
|
||||
}
|
||||
|
||||
|
||||
public String getOwnerName( )
|
||||
{
|
||||
return ownerName;
|
||||
}
|
||||
|
||||
|
||||
public void setOwnerName( String ownerName )
|
||||
{
|
||||
this.ownerName = ownerName;
|
||||
}
|
||||
|
||||
|
||||
public String getFleetName( )
|
||||
{
|
||||
return fleetName;
|
||||
}
|
||||
|
||||
|
||||
public void setFleetName( String fleetName )
|
||||
{
|
||||
this.fleetName = fleetName;
|
||||
}
|
||||
|
||||
|
||||
public long getFleetPower( )
|
||||
{
|
||||
return fleetPower;
|
||||
}
|
||||
|
||||
|
||||
public void setFleetPower( long fleetPower )
|
||||
{
|
||||
this.fleetPower = fleetPower;
|
||||
}
|
||||
|
||||
|
||||
public Boolean getStatus( )
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
public void setStatus( Boolean status )
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
||||
public Integer getSourceId( )
|
||||
{
|
||||
return sourceId;
|
||||
}
|
||||
|
||||
|
||||
public void setSourceId( Integer sourceId )
|
||||
{
|
||||
this.sourceId = sourceId;
|
||||
}
|
||||
|
||||
|
||||
public String getSourceName( )
|
||||
{
|
||||
return sourceName;
|
||||
}
|
||||
|
||||
|
||||
public void setSourceName( String sourceName )
|
||||
{
|
||||
this.sourceName = sourceName;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,91 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
public class FleetEventRecord
|
||||
extends EventRecord
|
||||
{
|
||||
private int locationId;
|
||||
private String locationName;
|
||||
private int x;
|
||||
private int y;
|
||||
private int orbit;
|
||||
private final List< FleetEventFleet > fleets = new LinkedList< FleetEventFleet >( );
|
||||
|
||||
|
||||
public int getLocationId( )
|
||||
{
|
||||
return locationId;
|
||||
}
|
||||
|
||||
|
||||
public void setLocationId( int locationId )
|
||||
{
|
||||
this.locationId = locationId;
|
||||
}
|
||||
|
||||
|
||||
public String getLocationName( )
|
||||
{
|
||||
return locationName;
|
||||
}
|
||||
|
||||
|
||||
public void setLocationName( String locationName )
|
||||
{
|
||||
this.locationName = locationName;
|
||||
}
|
||||
|
||||
|
||||
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 getOrbit( )
|
||||
{
|
||||
return orbit;
|
||||
}
|
||||
|
||||
|
||||
public void setOrbit( int orbit )
|
||||
{
|
||||
this.orbit = orbit;
|
||||
}
|
||||
|
||||
|
||||
public List< FleetEventFleet > getFleets( )
|
||||
{
|
||||
return fleets;
|
||||
}
|
||||
|
||||
|
||||
public void addFleet( FleetEventFleet fleet )
|
||||
{
|
||||
this.fleets.add( fleet );
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,86 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
public class FormatType
|
||||
{
|
||||
private final boolean internal;
|
||||
private final EventType eType;
|
||||
private final int eSubType;
|
||||
|
||||
|
||||
public FormatType( )
|
||||
{
|
||||
this.internal = false;
|
||||
this.eType = null;
|
||||
this.eSubType = 0;
|
||||
}
|
||||
|
||||
|
||||
public FormatType( EventType eType , int eSubType )
|
||||
{
|
||||
this.internal = true;
|
||||
this.eType = eType;
|
||||
this.eSubType = eSubType;
|
||||
}
|
||||
|
||||
|
||||
public boolean isInternal( )
|
||||
{
|
||||
return internal;
|
||||
}
|
||||
|
||||
|
||||
public EventType getType( )
|
||||
{
|
||||
return eType;
|
||||
}
|
||||
|
||||
|
||||
public int getSubType( )
|
||||
{
|
||||
return eSubType;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int hashCode( )
|
||||
{
|
||||
final int prime = 31;
|
||||
int result = 1;
|
||||
result = prime * result + eSubType;
|
||||
result = prime * result + ( ( eType == null ) ? 0 : eType.hashCode( ) );
|
||||
result = prime * result + ( internal ? 1231 : 1237 );
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals( Object obj )
|
||||
{
|
||||
if ( this == obj )
|
||||
return true;
|
||||
if ( obj == null )
|
||||
return false;
|
||||
if ( getClass( ) != obj.getClass( ) )
|
||||
return false;
|
||||
FormatType other = (FormatType) obj;
|
||||
if ( eSubType != other.eSubType )
|
||||
return false;
|
||||
if ( eType == null ) {
|
||||
if ( other.eType != null )
|
||||
return false;
|
||||
} else if ( !eType.equals( other.eType ) )
|
||||
return false;
|
||||
if ( internal != other.internal )
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString( )
|
||||
{
|
||||
return "[internal=" + internal + ", eType=" + eType + ", eSubType=" + eSubType + "]";
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,157 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
|
||||
|
||||
public class InboxRecord
|
||||
{
|
||||
private long id;
|
||||
private boolean read;
|
||||
private boolean internal;
|
||||
private Timestamp received;
|
||||
|
||||
private String senderType;
|
||||
private Integer senderId;
|
||||
private String senderName;
|
||||
|
||||
private String receiverType;
|
||||
private int receiverId;
|
||||
private String receiverName;
|
||||
|
||||
private long contentId;
|
||||
|
||||
|
||||
public long getId( )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId( long id )
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public boolean isRead( )
|
||||
{
|
||||
return read;
|
||||
}
|
||||
|
||||
|
||||
public void setRead( boolean read )
|
||||
{
|
||||
this.read = read;
|
||||
}
|
||||
|
||||
|
||||
public boolean isInternal( )
|
||||
{
|
||||
return internal;
|
||||
}
|
||||
|
||||
|
||||
public void setInternal( boolean internal )
|
||||
{
|
||||
this.internal = internal;
|
||||
}
|
||||
|
||||
|
||||
public Timestamp getReceived( )
|
||||
{
|
||||
return received;
|
||||
}
|
||||
|
||||
|
||||
public void setReceived( Timestamp received )
|
||||
{
|
||||
this.received = received;
|
||||
}
|
||||
|
||||
|
||||
public String getSenderType( )
|
||||
{
|
||||
return senderType;
|
||||
}
|
||||
|
||||
|
||||
public void setSenderType( String senderType )
|
||||
{
|
||||
this.senderType = senderType;
|
||||
}
|
||||
|
||||
|
||||
public Integer getSenderId( )
|
||||
{
|
||||
return senderId;
|
||||
}
|
||||
|
||||
|
||||
public void setSenderId( Integer senderId )
|
||||
{
|
||||
this.senderId = senderId;
|
||||
}
|
||||
|
||||
|
||||
public String getSenderName( )
|
||||
{
|
||||
return senderName;
|
||||
}
|
||||
|
||||
|
||||
public void setSenderName( String senderName )
|
||||
{
|
||||
this.senderName = senderName;
|
||||
}
|
||||
|
||||
|
||||
public String getReceiverType( )
|
||||
{
|
||||
return receiverType;
|
||||
}
|
||||
|
||||
|
||||
public void setReceiverType( String receiverType )
|
||||
{
|
||||
this.receiverType = receiverType;
|
||||
}
|
||||
|
||||
|
||||
public int getReceiverId( )
|
||||
{
|
||||
return receiverId;
|
||||
}
|
||||
|
||||
|
||||
public void setReceiverId( int receiverId )
|
||||
{
|
||||
this.receiverId = receiverId;
|
||||
}
|
||||
|
||||
|
||||
public String getReceiverName( )
|
||||
{
|
||||
return receiverName;
|
||||
}
|
||||
|
||||
|
||||
public void setReceiverName( String receiverName )
|
||||
{
|
||||
this.receiverName = receiverName;
|
||||
}
|
||||
|
||||
|
||||
public long getContentId( )
|
||||
{
|
||||
return contentId;
|
||||
}
|
||||
|
||||
|
||||
public void setContentId( long contentId )
|
||||
{
|
||||
this.contentId = contentId;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
|
||||
|
||||
public abstract class MessageDataRecord
|
||||
{
|
||||
private final boolean internal;
|
||||
private long id;
|
||||
private Timestamp timestamp;
|
||||
private long tick;
|
||||
|
||||
|
||||
protected MessageDataRecord( boolean internal )
|
||||
{
|
||||
this.internal = internal;
|
||||
}
|
||||
|
||||
|
||||
public long getId( )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId( long id )
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Timestamp getTimestamp( )
|
||||
{
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
|
||||
public void setTimestamp( Timestamp timestamp )
|
||||
{
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
|
||||
|
||||
public long getTick( )
|
||||
{
|
||||
return tick;
|
||||
}
|
||||
|
||||
|
||||
public void setTick( long tick )
|
||||
{
|
||||
this.tick = tick;
|
||||
}
|
||||
|
||||
|
||||
public boolean isInternal( )
|
||||
{
|
||||
return internal;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,154 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
public class NotificationsRecord
|
||||
{
|
||||
|
||||
private int id;
|
||||
private String name;
|
||||
private String language;
|
||||
private String address;
|
||||
|
||||
private String onPrivate;
|
||||
private String onAlliance;
|
||||
private String onInternal;
|
||||
private String onAdmin;
|
||||
|
||||
private Long lastUnmailed;
|
||||
private Long lastUnrecaped;
|
||||
|
||||
private boolean canNotify;
|
||||
|
||||
|
||||
public int getId( )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId( int id )
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public String getLanguage( )
|
||||
{
|
||||
return language;
|
||||
}
|
||||
|
||||
|
||||
public void setLanguage( String language )
|
||||
{
|
||||
this.language = language;
|
||||
}
|
||||
|
||||
|
||||
public String getAddress( )
|
||||
{
|
||||
return address;
|
||||
}
|
||||
|
||||
|
||||
public void setAddress( String address )
|
||||
{
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
|
||||
public String getOnPrivate( )
|
||||
{
|
||||
return onPrivate;
|
||||
}
|
||||
|
||||
|
||||
public void setOnPrivate( String onPrivate )
|
||||
{
|
||||
this.onPrivate = onPrivate;
|
||||
}
|
||||
|
||||
|
||||
public String getOnAlliance( )
|
||||
{
|
||||
return onAlliance;
|
||||
}
|
||||
|
||||
|
||||
public void setOnAlliance( String onAlliance )
|
||||
{
|
||||
this.onAlliance = onAlliance;
|
||||
}
|
||||
|
||||
|
||||
public String getOnInternal( )
|
||||
{
|
||||
return onInternal;
|
||||
}
|
||||
|
||||
|
||||
public void setOnInternal( String onInternal )
|
||||
{
|
||||
this.onInternal = onInternal;
|
||||
}
|
||||
|
||||
|
||||
public String getOnAdmin( )
|
||||
{
|
||||
return onAdmin;
|
||||
}
|
||||
|
||||
|
||||
public void setOnAdmin( String onAdmin )
|
||||
{
|
||||
this.onAdmin = onAdmin;
|
||||
}
|
||||
|
||||
|
||||
public Long getLastUnmailed( )
|
||||
{
|
||||
return lastUnmailed;
|
||||
}
|
||||
|
||||
|
||||
public void setLastUnmailed( Long lastUnmailed )
|
||||
{
|
||||
this.lastUnmailed = lastUnmailed;
|
||||
}
|
||||
|
||||
|
||||
public Long getLastUnrecaped( )
|
||||
{
|
||||
return lastUnrecaped;
|
||||
}
|
||||
|
||||
|
||||
public void setLastUnrecaped( Long lastUnrecaped )
|
||||
{
|
||||
this.lastUnrecaped = lastUnrecaped;
|
||||
}
|
||||
|
||||
|
||||
public boolean isCanNotify( )
|
||||
{
|
||||
return canNotify;
|
||||
}
|
||||
|
||||
|
||||
public void setCanNotify( boolean canNotify )
|
||||
{
|
||||
this.canNotify = canNotify;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,112 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
public class PlanetEventRecord
|
||||
extends EventRecord
|
||||
{
|
||||
private int locationId;
|
||||
private String locationName;
|
||||
private int x;
|
||||
private int y;
|
||||
private int orbit;
|
||||
private Integer empireId;
|
||||
private String empireName;
|
||||
private Long battleId;
|
||||
|
||||
|
||||
public int getLocationId( )
|
||||
{
|
||||
return locationId;
|
||||
}
|
||||
|
||||
|
||||
public void setLocationId( int locationId )
|
||||
{
|
||||
this.locationId = locationId;
|
||||
}
|
||||
|
||||
|
||||
public String getLocationName( )
|
||||
{
|
||||
return locationName;
|
||||
}
|
||||
|
||||
|
||||
public void setLocationName( String locationName )
|
||||
{
|
||||
this.locationName = locationName;
|
||||
}
|
||||
|
||||
|
||||
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 getOrbit( )
|
||||
{
|
||||
return orbit;
|
||||
}
|
||||
|
||||
|
||||
public void setOrbit( int orbit )
|
||||
{
|
||||
this.orbit = orbit;
|
||||
}
|
||||
|
||||
|
||||
public Integer getEmpireId( )
|
||||
{
|
||||
return empireId;
|
||||
}
|
||||
|
||||
|
||||
public void setEmpireId( Integer empireId )
|
||||
{
|
||||
this.empireId = empireId;
|
||||
}
|
||||
|
||||
|
||||
public String getEmpireName( )
|
||||
{
|
||||
return empireName;
|
||||
}
|
||||
|
||||
|
||||
public void setEmpireName( String empireName )
|
||||
{
|
||||
this.empireName = empireName;
|
||||
}
|
||||
|
||||
|
||||
public Long getBattleId( )
|
||||
{
|
||||
return battleId;
|
||||
}
|
||||
|
||||
|
||||
public void setBattleId( Long battleId )
|
||||
{
|
||||
this.battleId = battleId;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,86 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
public class QueueEventLocation
|
||||
{
|
||||
|
||||
private long eventId;
|
||||
private int locationId;
|
||||
private String locationName;
|
||||
private int x;
|
||||
private int y;
|
||||
private int orbit;
|
||||
|
||||
|
||||
public long getEventId( )
|
||||
{
|
||||
return eventId;
|
||||
}
|
||||
|
||||
|
||||
public void setEventId( long eventId )
|
||||
{
|
||||
this.eventId = eventId;
|
||||
}
|
||||
|
||||
|
||||
public int getLocationId( )
|
||||
{
|
||||
return locationId;
|
||||
}
|
||||
|
||||
|
||||
public void setLocationId( int locationId )
|
||||
{
|
||||
this.locationId = locationId;
|
||||
}
|
||||
|
||||
|
||||
public String getLocationName( )
|
||||
{
|
||||
return locationName;
|
||||
}
|
||||
|
||||
|
||||
public void setLocationName( String locationName )
|
||||
{
|
||||
this.locationName = locationName;
|
||||
}
|
||||
|
||||
|
||||
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 getOrbit( )
|
||||
{
|
||||
return orbit;
|
||||
}
|
||||
|
||||
|
||||
public void setOrbit( int orbit )
|
||||
{
|
||||
this.orbit = orbit;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
public class QueueEventRecord
|
||||
extends EventRecord
|
||||
{
|
||||
|
||||
private final List< QueueEventLocation > locations = new LinkedList< QueueEventLocation >( );
|
||||
|
||||
|
||||
public List< QueueEventLocation > getLocations( )
|
||||
{
|
||||
return locations;
|
||||
}
|
||||
|
||||
|
||||
public void addLocation( QueueEventLocation eventLocation )
|
||||
{
|
||||
this.locations.add( eventLocation );
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
package com.deepclone.lw.sqld.msgs;
|
||||
|
||||
|
||||
public class TextMessageRecord
|
||||
extends MessageDataRecord
|
||||
{
|
||||
|
||||
private String subject;
|
||||
private String text;
|
||||
|
||||
|
||||
public TextMessageRecord( )
|
||||
{
|
||||
super( false );
|
||||
}
|
||||
|
||||
|
||||
public String getSubject( )
|
||||
{
|
||||
return subject;
|
||||
}
|
||||
|
||||
|
||||
public void setSubject( String subject )
|
||||
{
|
||||
this.subject = subject;
|
||||
}
|
||||
|
||||
|
||||
public String getText( )
|
||||
{
|
||||
return text;
|
||||
}
|
||||
|
||||
|
||||
public void setText( String text )
|
||||
{
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,111 @@
|
|||
package com.deepclone.lw.sqld.sys;
|
||||
|
||||
|
||||
public class Constant
|
||||
{
|
||||
/** The constant's category */
|
||||
private String category;
|
||||
|
||||
/** The constant's internal name */
|
||||
private String name;
|
||||
|
||||
/** A description of the constant to be used on the administrative interface */
|
||||
private String description;
|
||||
|
||||
/** The minimal value of the constant (may be omitted) */
|
||||
private Double minValue;
|
||||
|
||||
/** The maximal value of the constant (may be omitted) */
|
||||
private Double maxValue;
|
||||
|
||||
/** The constant's current value */
|
||||
private double value;
|
||||
|
||||
|
||||
public String getCategory( )
|
||||
{
|
||||
return category;
|
||||
}
|
||||
|
||||
|
||||
public void setCategory( String category )
|
||||
{
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public String getDescription( )
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
|
||||
public void setDescription( String description )
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
|
||||
public Double getMinValue( )
|
||||
{
|
||||
return minValue;
|
||||
}
|
||||
|
||||
|
||||
public void setMinValue( Double minValue )
|
||||
{
|
||||
|
||||
this.minValue = minValue;
|
||||
}
|
||||
|
||||
|
||||
public void setMinValue( Float minValue )
|
||||
{
|
||||
|
||||
this.minValue = ( minValue == null ? null : minValue.doubleValue( ) );
|
||||
}
|
||||
|
||||
|
||||
public Double getMaxValue( )
|
||||
{
|
||||
return maxValue;
|
||||
}
|
||||
|
||||
|
||||
public void setMaxValue( Double maxValue )
|
||||
{
|
||||
this.maxValue = maxValue;
|
||||
}
|
||||
|
||||
|
||||
public void setMaxValue( Float maxValue )
|
||||
{
|
||||
|
||||
this.maxValue = ( maxValue == null ? null : maxValue.doubleValue( ) );
|
||||
}
|
||||
|
||||
|
||||
public double getValue( )
|
||||
{
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
public void setValue( double value )
|
||||
{
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,75 @@
|
|||
package com.deepclone.lw.sqld.sys;
|
||||
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
public class ExceptionLog
|
||||
{
|
||||
|
||||
private Long id;
|
||||
|
||||
private Integer order;
|
||||
|
||||
private String className;
|
||||
|
||||
private String message;
|
||||
|
||||
private List< StackTraceLog > stack = new LinkedList< StackTraceLog >( );
|
||||
|
||||
|
||||
public ExceptionLog( SystemLogEntry logEntry, String className , String message )
|
||||
{
|
||||
this.className = className;
|
||||
this.message = message;
|
||||
logEntry.addException( this );
|
||||
}
|
||||
|
||||
|
||||
public ExceptionLog( Long id , Integer order , String className , String message )
|
||||
{
|
||||
this.id = id;
|
||||
this.order = order;
|
||||
this.className = className;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
|
||||
public Long getId( )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public Integer getOrder( )
|
||||
{
|
||||
return order;
|
||||
}
|
||||
|
||||
|
||||
public String getClassName( )
|
||||
{
|
||||
return className;
|
||||
}
|
||||
|
||||
|
||||
public String getMessage( )
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
|
||||
public List< StackTraceLog > getStack( )
|
||||
{
|
||||
return stack;
|
||||
}
|
||||
|
||||
|
||||
public void addStackTrace( StackTraceLog stackTraceLog )
|
||||
{
|
||||
this.stack.add( stackTraceLog );
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,65 @@
|
|||
package com.deepclone.lw.sqld.sys;
|
||||
|
||||
|
||||
public class StackTraceLog
|
||||
{
|
||||
private Long excId;
|
||||
|
||||
private Integer order;
|
||||
|
||||
private String location;
|
||||
|
||||
private String fileName;
|
||||
|
||||
private Integer line;
|
||||
|
||||
|
||||
public StackTraceLog( ExceptionLog eLog , String location , String fileName , Integer line )
|
||||
{
|
||||
this.location = location;
|
||||
this.fileName = fileName;
|
||||
this.line = line;
|
||||
eLog.addStackTrace( this );
|
||||
}
|
||||
|
||||
|
||||
public StackTraceLog( Long excId , Integer order , String location , String fileName , Integer line )
|
||||
{
|
||||
this.excId = excId;
|
||||
this.order = order;
|
||||
this.location = location;
|
||||
this.fileName = fileName;
|
||||
this.line = line;
|
||||
}
|
||||
|
||||
|
||||
public Long getExcId( )
|
||||
{
|
||||
return excId;
|
||||
}
|
||||
|
||||
|
||||
public Integer getOrder( )
|
||||
{
|
||||
return order;
|
||||
}
|
||||
|
||||
|
||||
public String getLocation( )
|
||||
{
|
||||
return location;
|
||||
}
|
||||
|
||||
|
||||
public String getFileName( )
|
||||
{
|
||||
return fileName;
|
||||
}
|
||||
|
||||
|
||||
public Integer getLine( )
|
||||
{
|
||||
return line;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,135 @@
|
|||
package com.deepclone.lw.sqld.sys;
|
||||
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Single-entry system status "table".
|
||||
*
|
||||
* @author tseeker
|
||||
*/
|
||||
public class Status
|
||||
{
|
||||
/** Identifier of the next tick */
|
||||
private long nextTickIdentifier;
|
||||
|
||||
/** Identifier of the current tick, if one is running */
|
||||
private Long currentTick;
|
||||
|
||||
/** If the game is under maintenance, timestamp at which maintenance was initiated */
|
||||
private Timestamp maintenanceStart;
|
||||
|
||||
/** If the game is under maintenance, timestamp at which maintenance is supposed to end */
|
||||
private Timestamp maintenanceEnd;
|
||||
|
||||
/** If the game is under maintenance, text to display as the reason for maintenance */
|
||||
private String maintenanceReason;
|
||||
|
||||
/** Timestamp at which errors were last checked */
|
||||
private Timestamp lastErrorCheck;
|
||||
|
||||
/** Timestamp at which the last administration recap email was sent */
|
||||
private Timestamp lastAdminRecap;
|
||||
|
||||
/** Timestamp at which the last messages recap email was sent */
|
||||
private Timestamp lastMsgRecap;
|
||||
|
||||
|
||||
public Long getNextTickIdentifier( )
|
||||
{
|
||||
return nextTickIdentifier;
|
||||
}
|
||||
|
||||
|
||||
public void setNextTickIdentifier( long nextTickIdentifier )
|
||||
{
|
||||
this.nextTickIdentifier = nextTickIdentifier;
|
||||
}
|
||||
|
||||
|
||||
public Long getCurrentTick( )
|
||||
{
|
||||
return currentTick;
|
||||
}
|
||||
|
||||
|
||||
public void setCurrentTick( Long currentTick )
|
||||
{
|
||||
this.currentTick = currentTick;
|
||||
}
|
||||
|
||||
|
||||
public Timestamp getMaintenanceStart( )
|
||||
{
|
||||
return maintenanceStart;
|
||||
}
|
||||
|
||||
|
||||
public void setMaintenanceStart( Timestamp maintenanceStart )
|
||||
{
|
||||
this.maintenanceStart = maintenanceStart;
|
||||
}
|
||||
|
||||
|
||||
public Timestamp getMaintenanceEnd( )
|
||||
{
|
||||
return maintenanceEnd;
|
||||
}
|
||||
|
||||
|
||||
public void setMaintenanceEnd( Timestamp maintenanceEnd )
|
||||
{
|
||||
this.maintenanceEnd = maintenanceEnd;
|
||||
}
|
||||
|
||||
|
||||
public String getMaintenanceReason( )
|
||||
{
|
||||
return maintenanceReason;
|
||||
}
|
||||
|
||||
|
||||
public void setMaintenanceReason( String maintenanceReason )
|
||||
{
|
||||
this.maintenanceReason = maintenanceReason;
|
||||
}
|
||||
|
||||
|
||||
public Timestamp getLastErrorCheck( )
|
||||
{
|
||||
return lastErrorCheck;
|
||||
}
|
||||
|
||||
|
||||
public void setLastErrorCheck( Timestamp lastErrorCheck )
|
||||
{
|
||||
this.lastErrorCheck = lastErrorCheck;
|
||||
}
|
||||
|
||||
|
||||
public Timestamp getLastAdminRecap( )
|
||||
{
|
||||
return lastAdminRecap;
|
||||
}
|
||||
|
||||
|
||||
public void setLastAdminRecap( Timestamp lastAdminRecap )
|
||||
{
|
||||
this.lastAdminRecap = lastAdminRecap;
|
||||
}
|
||||
|
||||
|
||||
public Timestamp getLastMsgRecap( )
|
||||
{
|
||||
return lastMsgRecap;
|
||||
}
|
||||
|
||||
|
||||
public void setLastMsgRecap( Timestamp lastMsgRecap )
|
||||
{
|
||||
this.lastMsgRecap = lastMsgRecap;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,93 @@
|
|||
package com.deepclone.lw.sqld.sys;
|
||||
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
import com.deepclone.lw.cmd.admin.logs.LogLevel;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This class represents entries in the system log.
|
||||
*
|
||||
* @author tseeker
|
||||
*/
|
||||
public class SystemLogEntry
|
||||
{
|
||||
|
||||
private Long id;
|
||||
|
||||
private Timestamp timestamp;
|
||||
|
||||
private LogLevel level;
|
||||
|
||||
private String component;
|
||||
|
||||
private String message;
|
||||
|
||||
private List< ExceptionLog > exception;
|
||||
|
||||
|
||||
public SystemLogEntry( LogLevel level , String component , String message )
|
||||
{
|
||||
this.level = level;
|
||||
this.component = component;
|
||||
this.message = message;
|
||||
this.exception = new LinkedList< ExceptionLog >( );
|
||||
}
|
||||
|
||||
|
||||
public SystemLogEntry( Long id , Timestamp timestamp , LogLevel level , String component , String message )
|
||||
{
|
||||
this.id = id;
|
||||
this.timestamp = timestamp;
|
||||
this.level = level;
|
||||
this.component = component;
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
|
||||
public Long getId( )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public Timestamp getTimestamp( )
|
||||
{
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
|
||||
public LogLevel getLevel( )
|
||||
{
|
||||
return level;
|
||||
}
|
||||
|
||||
|
||||
public String getComponent( )
|
||||
{
|
||||
return component;
|
||||
}
|
||||
|
||||
|
||||
public String getMessage( )
|
||||
{
|
||||
return message;
|
||||
}
|
||||
|
||||
|
||||
public List< ExceptionLog > getException( )
|
||||
{
|
||||
return exception;
|
||||
}
|
||||
|
||||
|
||||
public void addException( ExceptionLog exceptionLog )
|
||||
{
|
||||
this.exception.add( exceptionLog );
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
package com.deepclone.lw.sqld.sys;
|
||||
|
||||
|
||||
import java.sql.Timestamp;
|
||||
|
||||
|
||||
|
||||
public class TickerTaskRecord
|
||||
{
|
||||
|
||||
private int id;
|
||||
private String name;
|
||||
private String status;
|
||||
private Timestamp timestamp;
|
||||
|
||||
|
||||
public int getId( )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setId( int id )
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public void setName( String name )
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public String getStatus( )
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
public void setStatus( String status )
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
||||
public Timestamp getTimestamp( )
|
||||
{
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
|
||||
public void setTimestamp( Timestamp timestamp )
|
||||
{
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:tx="http://www.springframework.org/schema/tx"
|
||||
xsi:schemaLocation="
|
||||
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
||||
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
|
||||
|
||||
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
|
||||
<property name="dataSource" ref="dataSource" />
|
||||
</bean>
|
||||
|
||||
<tx:annotation-driven transaction-manager="transactionManager"/>
|
||||
|
||||
</beans>
|
0
legacyworlds-server-data/src/test/java/.empty
Normal file
0
legacyworlds-server-data/src/test/java/.empty
Normal file
0
legacyworlds-server-data/src/test/resources/.empty
Normal file
0
legacyworlds-server-data/src/test/resources/.empty
Normal file
Reference in a new issue