コード例 #1
0
ファイル: Level.cs プロジェクト: ConjureETS/DeathBook
 public Level(List<Person> people, List<FriendshipLink> friendships, GameStrategy strategy)
 {
     this.people = people;
     this.friendships = friendships;
     this.strategy = strategy;
     this.numAlive = people.Count;
     this.numDead = 0;
     this.awareness = 0;
 }
コード例 #2
0
        public Level GenerateLevel(int numPeople, int avgFriends, float probability, float radius, GameStrategy strategy)
        {
            this.numPeople = numPeople;
            this.avgConnections = avgFriends;
            this.probability = probability;
            this.radius = radius;

            List<Person> people = CreatePeople();
            List<FriendshipLink> friendships = CreateFriendships(people);

            return new Level(people, friendships, strategy);
        }
コード例 #3
0
ファイル: LevelManager.cs プロジェクト: ConjureETS/DeathBook
 public Level NewLevel(int numPeople, int avgFriends, float probability, float radius, GameStrategy strategy)
 {
     return level = gen.GenerateLevel(numPeople, avgFriends, probability, radius, strategy);
 }
コード例 #4
0
ファイル: RulesTest.cs プロジェクト: ConjureETS/DeathBook
 // Use this for initialization
 void Start()
 {
     str = strategy;
 }