Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 private static char[] ConvertType(AoeEntityType unitType)
 {
     return(UnpackString(_unitTypes[unitType]));
 }
Ejemplo n.º 3
0
 private static bool TryConvertType(AoeEntityType unitType, out string convertedType)
 {
     return(_unitTypes.TryGetValue(unitType, out convertedType));
 }
Ejemplo n.º 4
0
 private static bool IsHostile(AoeEntityType unitType)
 {
     return(_hostiles.Contains(unitType));
 }