Skip to content

Commit

Permalink
(#32) ActionConstructor class started
Browse files Browse the repository at this point in the history
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
Clauvin committed May 3, 2017
1 parent 315b05a commit cfb324b
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
32 changes: 32 additions & 0 deletions UnityProject/Assets/Scripts/ActionConstructor.cs
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());
}





}
}
12 changes: 12 additions & 0 deletions UnityProject/Assets/Scripts/ActionConstructor.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cfb324b

Please sign in to comment.