diff -r 6a2083f7eeb8 -r 2a78c4ff2eab commands/snake/snake.cpp --- a/commands/snake/snake.cpp Mon Sep 20 16:46:34 2010 +0100 +++ b/commands/snake/snake.cpp Wed Oct 13 12:41:05 2010 +0100 @@ -16,7 +16,9 @@ using namespace IoUtils; _LIT(KSnakeSeg, "*"); +_LIT(KUnicodeSnakeSeg, "\u2588"); // Full block _LIT(KBait, "$"); +_LIT(KUnicodeBait, "\u2665"); // heart class CKeyWatcher; @@ -45,6 +47,7 @@ void SetBoard(TInt aX, TInt aY, TBool aSet); TBool GetBoard(TInt aX, TInt aY); void DrawBoardL(); + TUint16 BoardCharacter(TInt aX, TInt aY); void InitSnakeL(TInt aLen, TPoint aPos); void DrawSnakeL(); void DrawScore(); @@ -64,6 +67,7 @@ TPoint iBait; TInt iScore; TInt iSpeed; + TBool iUnicode; CKeyWatcher* iKeys; CPeriodic* iTimer; @@ -163,6 +167,8 @@ { _LIT(KOptSpeed, "speed"); aOptions.AppendIntL(iSpeed, KOptSpeed); + _LIT(KOptUnicode, "unicode"); + aOptions.AppendBoolL(iUnicode, KOptUnicode); } void CCmdSnake::ConstructL() @@ -230,7 +236,8 @@ { for (TInt x=0; x