-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#32) ActionConstructor class started
ActionConstructor creates the PlayerActions that the player will use in the game and also stores the functions that will be called by the actions.
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace Assets.Scripts | ||
{ | ||
public static class ActionConstructor | ||
{ | ||
public static double BuildUnnecessaryLandmarksResult() | ||
{ | ||
return -1 * 0.1 * StatsManager.instance.unemploymentRate; | ||
} | ||
|
||
public static PlayerAction BuildUnnecessaryLandmarks() | ||
{ | ||
return new PlayerAction(ActionsManager.instance.buttons[0], | ||
"Build unnecessary landmarks", | ||
"No, we don't need new bridges. But people like looking at them and" + | ||
"need work, so we'll have one anyway", | ||
300.0, | ||
4 * ActionsManager.instance.weekLength, | ||
MiscInfo.variableTypes.unemployementRate, | ||
BuildUnnecessaryLandmarksResult()); | ||
} | ||
|
||
|
||
|
||
|
||
|
||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.