Removed client-side display for old technology system
* Removed data classes and database access that were used to display technology information * Removed "Research" tab from Overview page on the web client
This commit is contained in:
parent
9a7bc03171
commit
154f215e24
10 changed files with 2 additions and 492 deletions
legacyworlds-session/src/main/java/com/deepclone/lw/cmd/player
|
@ -1,14 +1,12 @@
|
|||
package com.deepclone.lw.cmd.player;
|
||||
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import com.deepclone.lw.cmd.player.gdata.GamePageData;
|
||||
import com.deepclone.lw.cmd.player.gdata.GameResponseBase;
|
||||
import com.deepclone.lw.cmd.player.gdata.battles.BattleListEntry;
|
||||
import com.deepclone.lw.cmd.player.gdata.empire.OverviewData;
|
||||
import com.deepclone.lw.cmd.player.gdata.empire.ResearchLineData;
|
||||
|
||||
|
||||
|
||||
|
@ -18,17 +16,14 @@ public class EmpireResponse
|
|||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private final OverviewData overview;
|
||||
private final List< ResearchLineData > research;
|
||||
private final List< BattleListEntry > battles;
|
||||
|
||||
|
||||
public EmpireResponse( GamePageData page , OverviewData overview , List< ResearchLineData > research ,
|
||||
List< BattleListEntry > battles )
|
||||
public EmpireResponse( GamePageData page , OverviewData overview , List< BattleListEntry > battles )
|
||||
{
|
||||
super( page );
|
||||
this.overview = overview;
|
||||
this.battles = battles;
|
||||
this.research = Collections.unmodifiableList( research );
|
||||
}
|
||||
|
||||
|
||||
|
@ -38,12 +33,6 @@ public class EmpireResponse
|
|||
}
|
||||
|
||||
|
||||
public List< ResearchLineData > getResearch( )
|
||||
{
|
||||
return research;
|
||||
}
|
||||
|
||||
|
||||
public List< BattleListEntry > getBattles( )
|
||||
{
|
||||
return battles;
|
||||
|
|
|
@ -1,70 +0,0 @@
|
|||
package com.deepclone.lw.cmd.player.gdata.empire;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
|
||||
public class ResearchLineData
|
||||
implements Serializable , Comparable< ResearchLineData >
|
||||
{
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private final long id;
|
||||
private final String name;
|
||||
private final String description;
|
||||
private final List< TechnologyData > implemented;
|
||||
private final TechnologyData current;
|
||||
|
||||
|
||||
public ResearchLineData( long id , String name , String description , List< TechnologyData > implemented ,
|
||||
TechnologyData current )
|
||||
{
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
this.implemented = Collections.unmodifiableList( implemented );
|
||||
this.current = current;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int compareTo( ResearchLineData other )
|
||||
{
|
||||
return this.name.compareTo( other.name );
|
||||
}
|
||||
|
||||
|
||||
public long getId( )
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public String getDescription( )
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
|
||||
public List< TechnologyData > getImplemented( )
|
||||
{
|
||||
return implemented;
|
||||
}
|
||||
|
||||
|
||||
public TechnologyData getCurrent( )
|
||||
{
|
||||
return current;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,70 +0,0 @@
|
|||
package com.deepclone.lw.cmd.player.gdata.empire;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
||||
|
||||
public class TechnologyData
|
||||
implements Serializable
|
||||
{
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private final String name;
|
||||
private final String description;
|
||||
private final Integer researched;
|
||||
private final Long cost;
|
||||
|
||||
|
||||
public TechnologyData( String name , String description )
|
||||
{
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
this.researched = null;
|
||||
this.cost = null;
|
||||
}
|
||||
|
||||
|
||||
public TechnologyData( String name , String description , int researched )
|
||||
{
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
this.researched = researched;
|
||||
this.cost = null;
|
||||
}
|
||||
|
||||
|
||||
public TechnologyData( String name , String description , int researched , long cost )
|
||||
{
|
||||
this.name = name;
|
||||
this.description = description;
|
||||
this.researched = researched;
|
||||
this.cost = cost;
|
||||
}
|
||||
|
||||
|
||||
public String getName( )
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
public String getDescription( )
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
|
||||
public Integer getResearched( )
|
||||
{
|
||||
return researched;
|
||||
}
|
||||
|
||||
|
||||
public Long getCost( )
|
||||
{
|
||||
return cost;
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue