Ejemplo n.º 1
0
 public Entity(int id, int? playerId, Model.EntityType entityType, Model.Vec2Int position, int health, bool active)
 {
     this.Id = id;
     this.PlayerId = playerId;
     this.EntityType = entityType;
     this.Position = position;
     this.Health = health;
     this.Active = active;
 }
Ejemplo n.º 2
0
 public DebugState(Model.Vec2Int windowSize, Model.Vec2Float mousePosWindow, Model.Vec2Float mousePosWorld, string[] pressedKeys, Model.Camera camera, int playerIndex)
 {
     this.WindowSize     = windowSize;
     this.MousePosWindow = mousePosWindow;
     this.MousePosWorld  = mousePosWorld;
     this.PressedKeys    = pressedKeys;
     this.Camera         = camera;
     this.PlayerIndex    = playerIndex;
 }
Ejemplo n.º 3
0
 public MoveAction(Model.Vec2Int target, bool findClosestPosition, bool breakThrough)
 {
     this.Target = target;
     this.FindClosestPosition = findClosestPosition;
     this.BreakThrough        = breakThrough;
 }
Ejemplo n.º 4
0
 public BuildAction(Model.EntityType entityType, Model.Vec2Int position)
 {
     this.EntityType = entityType;
     this.Position   = position;
 }