Example #1
0
 public Entity(AoeEntityType unitType, float x, float y, float rotation, byte status, uint identifier)
 {
     _type       = unitType;
     _x          = x;
     _y          = y;
     _rotation   = rotation;
     _status     = status;
     _identifier = identifier;
 }
Example #2
0
 private static char[] ConvertType(AoeEntityType unitType)
 {
     return(UnpackString(_unitTypes[unitType]));
 }
Example #3
0
 private static bool TryConvertType(AoeEntityType unitType, out string convertedType)
 {
     return(_unitTypes.TryGetValue(unitType, out convertedType));
 }
Example #4
0
 private static bool IsHostile(AoeEntityType unitType)
 {
     return(_hostiles.Contains(unitType));
 }