Atavism Version 2018.1AGIS API

atavism.agis.database
Class ContentDatabase

java.lang.Object
  extended by atavism.agis.database.ContentDatabase

public class ContentDatabase
extends java.lang.Object


Field Summary
protected static Queries queries
           
 
Constructor Summary
ContentDatabase(boolean keepAlive)
           
 
Method Summary
 void close()
          Having too many connection errors, so adding this function to help cope with it
 int getItemHealthValue(int itemID)
           
 java.lang.Integer GetSeasonForInstance(java.lang.Integer instId, java.lang.Integer month)
           
 java.util.ArrayList<java.lang.Integer> GetWeatherProfilesForInstance(java.lang.Integer instId, java.lang.Integer month)
           
 java.util.HashMap<java.lang.Integer,BuildObjectStage> loadBuildObjectStages()
           
 java.util.HashMap<java.lang.Integer,BuildObjectTemplate> loadBuildObjectTemplates()
          Building System Database Functions
 java.util.ArrayList<java.lang.Integer> loadCharacterFactorySkills(int id)
           
 void loadCharacterFactoryStats(CharacterTemplate tmpl, int id)
           
 java.util.HashMap<java.lang.String,CharacterTemplate> loadCharacterFactoryTemplates()
           
 void loadCharacterStartingItems(CharacterTemplate tmpl, int id)
           
 void loadEditorOptions()
          Loads in the options and choices from the Atavism Editor window.
 java.lang.String loadGameSetting(java.lang.String settingName)
           
 java.util.HashMap<java.lang.Integer,java.util.ArrayList<Graveyard>> loadGraveyards()
           
 java.util.HashMap<java.lang.Integer,InteractiveObject> loadInteractiveObjects(int instanceID, OID instanceOid)
           
 void loadLootTableDrops(LootTable lTbl)
          Unused.
 java.util.HashMap<java.lang.Integer,LootTable> loadLootTables(int category)
           
 java.util.HashMap<java.lang.Integer,VolumetricRegion> loadRegions(int instanceID, OID instanceOid)
           
 void loadRegionShapes(VolumetricRegion region)
           
 java.util.HashMap<java.lang.Integer,java.util.List<java.lang.Integer[]>> loadResourceDrops()
           
 java.util.HashMap<java.lang.Integer,ResourceNode> loadResourceNodes(int instanceID, OID instanceOid, java.util.HashMap<OID,java.util.HashMap<java.lang.String,ResourceNodeGroup>> resourceNodeGroups)
           
 java.util.HashMap<java.lang.Integer,WeatherPlugin.WeatherProfile> loadWeatherProfiles()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queries

protected static Queries queries
Constructor Detail

ContentDatabase

public ContentDatabase(boolean keepAlive)
Method Detail

loadWeatherProfiles

public java.util.HashMap<java.lang.Integer,WeatherPlugin.WeatherProfile> loadWeatherProfiles()

GetWeatherProfilesForInstance

public java.util.ArrayList<java.lang.Integer> GetWeatherProfilesForInstance(java.lang.Integer instId,
                                                                            java.lang.Integer month)

GetSeasonForInstance

public java.lang.Integer GetSeasonForInstance(java.lang.Integer instId,
                                              java.lang.Integer month)

loadGameSetting

public java.lang.String loadGameSetting(java.lang.String settingName)

loadEditorOptions

public void loadEditorOptions()
Loads in the options and choices from the Atavism Editor window. Saves a copy of the editor options map to the RequirementChecker class.


loadCharacterFactoryTemplates

public java.util.HashMap<java.lang.String,CharacterTemplate> loadCharacterFactoryTemplates()

loadCharacterFactoryStats

public void loadCharacterFactoryStats(CharacterTemplate tmpl,
                                      int id)

loadCharacterFactorySkills

public java.util.ArrayList<java.lang.Integer> loadCharacterFactorySkills(int id)

loadCharacterStartingItems

public void loadCharacterStartingItems(CharacterTemplate tmpl,
                                       int id)

loadLootTables

public java.util.HashMap<java.lang.Integer,LootTable> loadLootTables(int category)

loadLootTableDrops

public void loadLootTableDrops(LootTable lTbl)
Unused.

Parameters:
lTbl -

loadGraveyards

public java.util.HashMap<java.lang.Integer,java.util.ArrayList<Graveyard>> loadGraveyards()

loadRegions

public java.util.HashMap<java.lang.Integer,VolumetricRegion> loadRegions(int instanceID,
                                                                         OID instanceOid)

loadRegionShapes

public void loadRegionShapes(VolumetricRegion region)

loadInteractiveObjects

public java.util.HashMap<java.lang.Integer,InteractiveObject> loadInteractiveObjects(int instanceID,
                                                                                     OID instanceOid)

loadResourceNodes

public java.util.HashMap<java.lang.Integer,ResourceNode> loadResourceNodes(int instanceID,
                                                                           OID instanceOid,
                                                                           java.util.HashMap<OID,java.util.HashMap<java.lang.String,ResourceNodeGroup>> resourceNodeGroups)

loadResourceDrops

public java.util.HashMap<java.lang.Integer,java.util.List<java.lang.Integer[]>> loadResourceDrops()

loadBuildObjectTemplates

public java.util.HashMap<java.lang.Integer,BuildObjectTemplate> loadBuildObjectTemplates()
Building System Database Functions


loadBuildObjectStages

public java.util.HashMap<java.lang.Integer,BuildObjectStage> loadBuildObjectStages()

getItemHealthValue

public int getItemHealthValue(int itemID)

close

public void close()
Having too many connection errors, so adding this function to help cope with it



Copyright © 2018 Dragonsan Studios Sp. z o.o.