Esempio n. 1
0
        public void SameTeam()
        {
            Team teamA = new Team(1, 0, 0, 0);
            Team teamB = new Team(1, 0, 0, 0);

            Assert.IsTrue(teamA.IsFriendly(teamB));
            Assert.IsTrue(teamB.IsFriendly(teamA));
        }
Esempio n. 2
0
 public bool IsHostile(Team other)
 {
     return ((_team | _hostile) & other._team) == other._team;
 }
Esempio n. 3
0
 public bool IsNeutral(Team other)
 {
     return ((_team | _neutral) & other._team) == other._team;
 }
Esempio n. 4
0
 public bool IsFriendly(Team other)
 {
     return ((_team | _friendly) & other._team) == other._team;
 }