Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
//Copyright (C) 2013 Valentin Ivanov http://www.breakcontinue.com.
//
//This work is licensed under a Creative Commons
//Attribution-NonCommercial-ShareAlike 3.0 Unported License.
//See http://creativecommons.org/licenses/by-nc-sa/3.0/
//
//All other rights reserved.
//
//THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
//EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
//WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
#ifndef _GAMEPIECE_H_
#define _GAMEPIECE_H_
#include "Arduino.h"
class GamePiece
{
public:
GamePiece(uint8_t rows, uint8_t columns, uint8_t * inputArray = NULL);
GamePiece(const GamePiece& copyFrom);
~GamePiece();
GamePiece * rotateLeft();
GamePiece * rotateRight();
uint8_t& operator() (const int rowIndex, const int columnIndex);
uint8_t Rows;
uint8_t Columns;
private:
boolean _freeData;
uint8_t * _data;
};
#endif // _GAMEPIECE_H_