Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Block.cpp
- Committer:
- tyleralt
- Date:
- 2015-08-17
- Revision:
- 5:d7d16cb9c974
- Parent:
- 4:f1e33a234a74
File content as of revision 5:d7d16cb9c974:
#include "Block.h" //*********************point class************************// Block :: Block (int xi, int yi, int zi, int sizei, int heighti){ x = xi; y = yi; z = zi; size = sizei; height = heighti; } Block :: Block (){ x = 0; y = 0; z = 0; size = 0; height = 0; } void Block :: moveRight(){ x = (x + 1); } void Block :: moveLeft(){ x = (x - 1); } void Block :: moveIn(){ y--; } void Block :: moveOut(){ y++; }