Commented buildings
This commit is contained in:
@@ -246,54 +246,6 @@ MonoBehaviour:
|
||||
ResearchQueueView: {fileID: 772240091}
|
||||
ResearchTechView: {fileID: 1253284646}
|
||||
ResearchCostView: {fileID: 704144855}
|
||||
--- !u!1 &45841523
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 45841525}
|
||||
- component: {fileID: 45841524}
|
||||
m_Layer: 0
|
||||
m_Name: NewGameDataManager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &45841524
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 45841523}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3014d52f6fd1491488241c789af97729, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
NumberOfPlayers: 2
|
||||
NumberOfSolarSystems: 10
|
||||
PlayerColors:
|
||||
- {r: 1, g: 0, b: 0, a: 1}
|
||||
--- !u!4 &45841525
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 45841523}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -5.1526527, y: -2.7792654, z: 29.834036}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 12
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!224 &78137893 stripped
|
||||
RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 22400004, guid: 05a81c3d5091440058129444d28322f3, type: 3}
|
||||
@@ -1283,37 +1235,6 @@ RectTransform:
|
||||
m_AnchoredPosition: {x: -333, y: 4.4}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &273144437
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 273144438}
|
||||
m_Layer: 0
|
||||
m_Name: ---Testing---
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &273144438
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 273144437}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 724.67566, y: 328.9097, z: 136.93561}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 11
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &277858804
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -3292,6 +3213,37 @@ Transform:
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 5
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &765667544
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 765667545}
|
||||
m_Layer: 0
|
||||
m_Name: ---Testing---
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &765667545
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 765667544}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 661.4759, y: 267.70346, z: 289.69012}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 11
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &772240089
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -10383,6 +10335,37 @@ RectTransform:
|
||||
m_AnchoredPosition: {x: 441, y: 0}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &1169354189
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1169354190}
|
||||
m_Layer: 0
|
||||
m_Name: Remove before build!
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1169354190
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1169354189}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 661.4759, y: 267.70346, z: 289.69012}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 12
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1182081982
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -10962,6 +10945,57 @@ RectTransform:
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 100, y: 100}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &1266327900
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1266327902}
|
||||
- component: {fileID: 1266327901}
|
||||
m_Layer: 0
|
||||
m_Name: NewGameDataManager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1266327901
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1266327900}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 3014d52f6fd1491488241c789af97729, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
NumberOfPlayers: 1
|
||||
NumberOfSolarSystems: 10
|
||||
PlayerColors:
|
||||
- {r: 1, g: 0.058096312, b: 0, a: 1}
|
||||
- {r: 0, g: 1, b: 0.045587063, a: 1}
|
||||
- {r: 1, g: 0.59621054, b: 0, a: 1}
|
||||
- {r: 0, g: 0.1731019, b: 1, a: 1}
|
||||
--- !u!4 &1266327902
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1266327900}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -5.1526527, y: -2.7792654, z: 29.834036}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 13
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1284083120
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -1956,7 +1956,6 @@ GameObject:
|
||||
- component: {fileID: 540706482}
|
||||
- component: {fileID: 540706481}
|
||||
- component: {fileID: 540706480}
|
||||
- component: {fileID: 540706479}
|
||||
m_Layer: 5
|
||||
m_Name: TitleScreenCanvas
|
||||
m_TagString: Untagged
|
||||
@@ -1964,98 +1963,6 @@ GameObject:
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &540706479
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 540706478}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9541d86e2fd84c1d9990edf0852d74ab, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_text: Test
|
||||
m_isRightToLeft: 0
|
||||
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||
m_fontSharedMaterials: []
|
||||
m_fontMaterial: {fileID: 0}
|
||||
m_fontMaterials: []
|
||||
m_fontColor32:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_enableVertexGradient: 0
|
||||
m_colorMode: 3
|
||||
m_fontColorGradient:
|
||||
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_fontColorGradientPreset: {fileID: 0}
|
||||
m_spriteAsset: {fileID: 0}
|
||||
m_tintAllSprites: 0
|
||||
m_StyleSheet: {fileID: 0}
|
||||
m_TextStyleHashCode: -1183493901
|
||||
m_overrideHtmlColors: 0
|
||||
m_faceColor:
|
||||
serializedVersion: 2
|
||||
rgba: 4294967295
|
||||
m_fontSize: 100
|
||||
m_fontSizeBase: 100
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
m_VerticalAlignment: 256
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_enableWordWrapping: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 1
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 1
|
||||
m_parseCtrlCharacters: 1
|
||||
m_isOrthographic: 0
|
||||
m_isCullingEnabled: 0
|
||||
m_horizontalMapping: 0
|
||||
m_verticalMapping: 0
|
||||
m_uvLineOffset: 0
|
||||
m_geometrySortingOrder: 0
|
||||
m_IsTextObjectScaleStatic: 0
|
||||
m_VertexBufferAutoSizeReduction: 0
|
||||
m_useMaxVisibleDescender: 1
|
||||
m_pageToDisplay: 1
|
||||
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_isUsingLegacyAnimationComponent: 0
|
||||
m_isVolumetricText: 0
|
||||
_SortingLayer: 0
|
||||
_SortingLayerID: 0
|
||||
_SortingOrder: 0
|
||||
m_hasFontAssetChanged: 0
|
||||
m_renderer: {fileID: 540706480}
|
||||
m_maskType: 0
|
||||
--- !u!23 &540706480
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -6541,8 +6448,13 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 3014d52f6fd1491488241c789af97729, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
NumberOfPlayers: 0
|
||||
NumberOfSolarSystems: 0
|
||||
NumberOfPlayers: 1
|
||||
NumberOfSolarSystems: 10
|
||||
PlayerColors:
|
||||
- {r: 1, g: 0.058096312, b: 0, a: 1}
|
||||
- {r: 0, g: 1, b: 0.045587063, a: 1}
|
||||
- {r: 1, g: 0.59621054, b: 0, a: 1}
|
||||
- {r: 0, g: 0.1731019, b: 1, a: 1}
|
||||
--- !u!4 &1680360439
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -1,25 +1,50 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @author Aaron Moser
|
||||
*
|
||||
* @package Assets.Scripts.Buildings
|
||||
*/
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBuilding
|
||||
{
|
||||
/// <summary>
|
||||
/// Class <c>BuildingValues</c> is a container to transport data.
|
||||
/// <value></value>
|
||||
/// <value>RunningCost is the running cost of a building.</value>
|
||||
/// <value>ScienceCapacity is the amount of science produced by the building.</value>
|
||||
/// <value>FoodCapacity is the amount of food produced by the building.</value>
|
||||
/// <value>IndustrialCapacity is the amount of industry produced by the building.</value>
|
||||
/// <value>MoneyCapacity is the amount of money produced by the building.</value>
|
||||
/// <value>MilitaryPower is the amount of military produced by the building.</value>
|
||||
/// </summary>
|
||||
/**
|
||||
* @section DESCRIPTION
|
||||
*
|
||||
* Class is a container to transport data about building.
|
||||
*/
|
||||
public class BuildingValues
|
||||
{
|
||||
/**
|
||||
* RunningCost is the running cost of a building.
|
||||
*/
|
||||
public int RunningCost = 0;
|
||||
|
||||
/**
|
||||
* ScienceCapacity is the amount of science produced by the building.
|
||||
*/
|
||||
public int ScienceCapacity = 0;
|
||||
|
||||
/**
|
||||
* FoodCapacity is the amount of food produced by the building.
|
||||
*/
|
||||
public int FoodCapacity = 0;
|
||||
|
||||
/**
|
||||
* IndustrialCapacity is the amount of industry produced by the building.
|
||||
*/
|
||||
public int IndustrialCapacity = 0;
|
||||
|
||||
/**
|
||||
* MoneyCapacity is the amount of money produced by the building.
|
||||
*/
|
||||
public int MoneyCapacity = 0;
|
||||
|
||||
/**
|
||||
* MilitaryPower is the amount of military produced by the building.
|
||||
*/
|
||||
public int MilitaryPower = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,26 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @author Aaron Moser
|
||||
*
|
||||
* @package Assets.Scripts.Buildings.Food
|
||||
*/
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace NBuilding
|
||||
{
|
||||
/**
|
||||
* @section DESCRIPTION
|
||||
*
|
||||
* Class contains definition of farm building.
|
||||
*/
|
||||
public class Farm : ABuilding
|
||||
{
|
||||
/**
|
||||
* Creates a farm, which produces 3 food.
|
||||
*/
|
||||
public Farm()
|
||||
{
|
||||
SetFoodCapacity(3);
|
||||
|
||||
@@ -1,71 +1,121 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @author Aaron Moser
|
||||
*
|
||||
* @package Assets.Scripts.Buildings
|
||||
*/
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBuilding
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface <c>IBuilding</c> defines the functions for the buildings.
|
||||
/// <param><c>iId</c> is the id of a player.</param>
|
||||
/// <returns>Returns <c>all values</c> of all buildings at star system of player.</returns>
|
||||
/// More efficient because it iterates only once through list instead of 6 times.
|
||||
/// </summary>
|
||||
/**
|
||||
* @section DESCRIPTION
|
||||
*
|
||||
* Interface defines the functions for the buildings.
|
||||
*/
|
||||
public interface IBuilding
|
||||
{
|
||||
//----------------------------------------------------------------------------
|
||||
// Getters
|
||||
|
||||
/// <summary>
|
||||
/// Function <c>GetRunningCost</c> returns the running cost if the building is running.
|
||||
/// </summary>
|
||||
/**
|
||||
* Function returns the running cost if the building is running.
|
||||
*/
|
||||
public int GetRunningCost();
|
||||
|
||||
/// <summary>
|
||||
/// Function <c>GetScienceCapacity</c> returns the amount of science the building produces if it is running.
|
||||
/// </summary>
|
||||
/**
|
||||
* Function returns the amount of science the building produces if it is running.
|
||||
*/
|
||||
public int GetScienceCapacity();
|
||||
|
||||
/// <summary>
|
||||
/// Function <c>GetFoodCapacity</c> returns the amount of food the building produces if it is running.
|
||||
/// </summary>
|
||||
/**
|
||||
* Function returns the amount of food the building produces if it is running.
|
||||
*/
|
||||
public int GetFoodCapacity();
|
||||
|
||||
/// <summary>
|
||||
/// Function <c>GetIndustrialCapacity</c> returns the amount of industrial the building produces if it is running.
|
||||
/// </summary>
|
||||
/**
|
||||
* Function returns the amount of industrial the building produces if it is running.
|
||||
*/
|
||||
public int GetIndustrialCapacity();
|
||||
|
||||
/// <summary>
|
||||
/// Function <c>GetMoneyCapacity</c> returns the amount of money the building produces if it is running.
|
||||
/// </summary>
|
||||
/**
|
||||
* Function returns the amount of money the building produces if it is running.
|
||||
*/
|
||||
public int GetMoneyCapacity();
|
||||
|
||||
/// <summary>
|
||||
/// Function <c>GetMilitaryPower</c> returns the amount of power the building produces if it is running.
|
||||
/// </summary>
|
||||
/**
|
||||
* Function returns the amount of power the building produces if it is running.
|
||||
*/
|
||||
public int GetMilitaryPower();
|
||||
|
||||
/// <summary>
|
||||
/// Function <c>IsRunning</c> returns true if the building is running, false if the building is not running.
|
||||
/// </summary>
|
||||
/**
|
||||
* Function returns true if the building is running, false if the building is not running.
|
||||
*/
|
||||
public bool IsRunning();
|
||||
|
||||
/// <summary>
|
||||
/// Function <c>GetId</c> returns id of building.
|
||||
/// </summary>
|
||||
/**
|
||||
* Function returns id of building.
|
||||
*/
|
||||
public ABuilding.BuildingID GetId();
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
// Setters
|
||||
|
||||
/**
|
||||
*
|
||||
* @param newRunningCost, new costs to set running costs to.
|
||||
*/
|
||||
public void SetRunningCost(int newRunningCost);
|
||||
|
||||
/**
|
||||
* Sets science capacity.
|
||||
*
|
||||
* @param newScienceCapacity, new science value to set.
|
||||
*/
|
||||
public void SetScienceCapacity(int newScienceCapacity);
|
||||
|
||||
/**
|
||||
* Sets food capacity.
|
||||
*
|
||||
* @param newFoodCapacity, new food value to set.
|
||||
*/
|
||||
public void SetFoodCapacity(int newFoodCapacity);
|
||||
|
||||
/**
|
||||
* Sets industrial capacity.
|
||||
*
|
||||
* @param newIndustrialCapacity, new industrial value to set.
|
||||
*/
|
||||
public void SetIndustrialCapacity(int newIndustrialCapacity);
|
||||
|
||||
/**
|
||||
* Sets industrial capacity.
|
||||
*
|
||||
* @param newMoneyCapacity, new money value to set.
|
||||
*/
|
||||
public void SetMoneyCapacity(int newMoneyCapacity);
|
||||
|
||||
/**
|
||||
* Sets military capacity.
|
||||
*
|
||||
* @param newMilitaryPower, new military power value to set.
|
||||
*/
|
||||
public void SetMilitaryPower(int newMilitaryPower);
|
||||
|
||||
/**
|
||||
* Sets building running or not.
|
||||
*
|
||||
* @param newRunning, true if building should run, producing resources, false if not.
|
||||
*/
|
||||
public void SetRunning(bool newRunning);
|
||||
|
||||
/**
|
||||
* Sets id of building.
|
||||
*
|
||||
* @param newId, new id of building.
|
||||
*/
|
||||
public void SetId(ABuilding.BuildingID newId);
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
@@ -1,10 +1,25 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @author Aaron Moser
|
||||
*
|
||||
* @package Assets.Scripts.Buildings.Industry
|
||||
*/
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBuilding
|
||||
{
|
||||
/**
|
||||
* @section DESCRIPTION
|
||||
*
|
||||
* Class contains definition of smeltery building.
|
||||
*/
|
||||
public class Smeltery : ABuilding
|
||||
{
|
||||
/**
|
||||
* Creates a smeltery, which produces 3 industrial capacity.
|
||||
*/
|
||||
public Smeltery()
|
||||
{
|
||||
SetIndustrialCapacity(3);
|
||||
|
||||
@@ -1,10 +1,25 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @author Aaron Moser
|
||||
*
|
||||
* @package Assets.Scripts.Buildings.Military
|
||||
*/
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBuilding
|
||||
{
|
||||
/**
|
||||
* @section DESCRIPTION
|
||||
*
|
||||
* Class contains definition of armory building.
|
||||
*/
|
||||
public class Armory : ABuilding
|
||||
{
|
||||
/**
|
||||
* Creates an armory, which produces 3 military power.
|
||||
*/
|
||||
public Armory()
|
||||
{
|
||||
SetMilitaryPower(3);
|
||||
|
||||
@@ -1,10 +1,25 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @author Aaron Moser
|
||||
*
|
||||
* @package Assets.Scripts.Buildings.Misc
|
||||
*/
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBuilding
|
||||
{
|
||||
/**
|
||||
* @section DESCRIPTION
|
||||
*
|
||||
* Class contains definition of spaceport building.
|
||||
*/
|
||||
public class Spaceport : ABuilding
|
||||
{
|
||||
/**
|
||||
* Creates spaceport building.
|
||||
*/
|
||||
public Spaceport() { }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,25 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @author Aaron Moser
|
||||
*
|
||||
* @package Assets.Scripts.Buildings.Money
|
||||
*/
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBuilding
|
||||
{
|
||||
/// <summary>
|
||||
/// Class <c>Market</c> defines the class for market.
|
||||
/// </summary>
|
||||
/**
|
||||
* @section DESCRIPTION
|
||||
*
|
||||
* Class contains definition of market building.
|
||||
*/
|
||||
public class Market : ABuilding
|
||||
{
|
||||
/**
|
||||
* Creates a market, which produces 3 money.
|
||||
*/
|
||||
public Market()
|
||||
{
|
||||
SetMoneyCapacity(3);
|
||||
|
||||
@@ -1,10 +1,25 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* @author Aaron Moser
|
||||
*
|
||||
* @package Assets.Scripts.Buildings.Science
|
||||
*/
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace NBuilding
|
||||
{
|
||||
/**
|
||||
* @section DESCRIPTION
|
||||
*
|
||||
* Class contains definition of university building.
|
||||
*/
|
||||
public class University : ABuilding
|
||||
{
|
||||
/**
|
||||
* Creates an university, which produces 3 science.
|
||||
*/
|
||||
public University()
|
||||
{
|
||||
SetScienceCapacity(3);
|
||||
|
||||
Reference in New Issue
Block a user