Ejemplo 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));
        }
Ejemplo n.º 2
0
 public bool IsHostile(Team other)
 {
     return ((_team | _hostile) & other._team) == other._team;
 }
Ejemplo n.º 3
0
 public bool IsNeutral(Team other)
 {
     return ((_team | _neutral) & other._team) == other._team;
 }
Ejemplo n.º 4
0
 public bool IsFriendly(Team other)
 {
     return ((_team | _friendly) & other._team) == other._team;
 }