1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
// Friendship to hexStore
class hexStore
// Array and group of hexStores
class hexStoreArray(RECT workArea, int r, int g, int b)
{
public:
hexStoreArray(int resolutionX, int resolutionY, int r, int g, int b);
~hexStoreArray();
private:
int x, y, red, green, blue;
hexStore pixalArray[8];
}
hexStoreArray::hexStoreArray()
{
pixalArray[0] = hexStore topLeft(workArea.top, workArea.left, int red, int green, int blue);
pixalArray[1] = hexStore topLeft(workArea.top, workArea.right, int red, int green, int blue);
pixalArray[2] = hexStore topLeft(workArea.bottom, workArea.left, int red, int green, int blue);
pixalArray[3] = hexStore topLeft(workArea.bottom, workArea.right, int red, int green, int blue);
pixalArray[4] = hexStore topLeft((workArea.top)*.5, (workArea.left)*.5, int red, int green, int blue);
pixalArray[5] = hexStore topLeft((workArea.top)*.5, (workArea.left)*.3, int red, int green, int blue);
pixalArray[6] = hexStore topLeft((workArea.top)*.5, (workArea.left)*.6, int red, int green, int blue);
pixalArray[7] = hexStore topLeft((workArea.top)*.3, (workArea.left)*.5, int red, int green, int blue);
pixalArray[8] = hexStore topLeft((workArea.top)*.6, (workArea.left)*.5, int red, int green, int blue);
}
| |