Click here to Skip to main content
15,886,030 members
Articles / Desktop Programming / XAML

The Bricks Game for Silverlight

Rate me:
Please Sign up or sign in to vote.
4.92/5 (43 votes)
8 Sep 2010CPOL13 min read 80.3K   1.3K   81  
An article exploring the use of MVVM, styles and templates in game programming in Silverlight 4
using System.Collections.Generic;
//using System.Drawing;
using Bricks.Silverlight.Core;
using System.Windows.Media;

namespace Bricks.Silverlight.Core.Shapes
{
    public interface IShape
    {
        bool Rotate90();
        bool Rotate270();
        void Anchor();
        bool MoveLeft();
        bool MoveRight();
        bool MoveDown();

        int X { get; set; }
        int Y { get; set; }
        int Width { get; }
        int Height { get; }
        Color Color { get; set; }
        string ShapeString { get; }
        IBrick[,] ShapeArray { get; }
        IBoard ContainerBoard { get; set;}
        bool Anchored { get; }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Instructor / Trainer Alura Cursos Online
Brazil Brazil

Comments and Discussions