Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Commit?

  • Loading branch information...
commit b73ef2e92aac52c479db383e4bf7fb2d37fe5434 1 parent 79db63a
@markrendle authored
View
2  Aggro.Controls/Aggro.Controls.csproj
@@ -55,7 +55,7 @@
<Reference Include="System.Windows.Browser" />
</ItemGroup>
<ItemGroup>
- <Compile Include="GameGrid.cs" />
+ <Compile Include="SizeableGrid.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
View
61 Aggro.Controls/GameGrid.cs
@@ -1,61 +0,0 @@
-using System;
-using System.Net;
-using System.Linq;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Documents;
-using System.Windows.Ink;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Animation;
-using System.Windows.Shapes;
-
-namespace Aggro.Controls
-{
- public class GameGrid : Grid
- {
- public static readonly DependencyProperty ColumnCountProperty =
- DependencyProperty.Register("ColumnCount", typeof(int), typeof(GameGrid),
- new PropertyMetadata(0, (o, a) => ((GameGrid)o).ColumnCountChanged()));
-
- public static readonly DependencyProperty RowCountProperty =
- DependencyProperty.Register("RowCount", typeof(int), typeof(GameGrid),
- new PropertyMetadata(0, (o, a) => ((GameGrid)o).RowCountChanged()));
-
- public int ColumnCount
- {
- get { return (int)GetValue(ColumnCountProperty); }
- set { SetValue(ColumnCountProperty, value); }
- }
-
- public int RowCount
- {
- get { return (int)GetValue(RowCountProperty); }
- set { SetValue(RowCountProperty, value); }
- }
-
- private void ColumnCountChanged()
- {
- ColumnDefinitions.Clear();
-
- ColumnCount.Times().Do(() =>
- {
- ColumnDefinitions.Add(new ColumnDefinition());
- });
-
- OnApplyTemplate();
- }
-
- private void RowCountChanged()
- {
- RowDefinitions.Clear();
-
- RowCount.Times().Do(() =>
- {
- RowDefinitions.Add(new RowDefinition());
- });
-
- OnApplyTemplate();
- }
- }
-}
View
1  Aggro.Engine/Aggro.Engine.csproj
@@ -65,6 +65,7 @@
<Compile Include="MoveableEntity.cs" />
<Compile Include="Movement.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="Tile.cs" />
<Compile Include="Trig.cs" />
</ItemGroup>
<ItemGroup>
View
1  Aggro.Engine/Input.cs
@@ -36,7 +36,6 @@ public static Input Default
private IObservable<Point> _mouseRightUps;
private IObservable<Point> _mouseMoves;
- private Point _mousePosition;
public void SetDirectionSources(Tuple<IObservable<Direction>, IObservable<Direction>> sources)
{
Please sign in to comment.
Something went wrong with that request. Please try again.