start 380 project5

changes to 380 project 4
changes to 350 project 2

Signed-off-by: Amrit Panesar <apanesar@4195tech.com>
This commit is contained in:
Amrit Panesar committed 2015-05-06 10:18:39 -07:00
1 parent 40ac78074b
commit 39ee821f54
174 files changed
+13356 -80

No files matched your search

@@ -0,0 +1,36 @@
#pragma once
#include "..\..\GkDefinitions.h"
#include "..\GkGameEntity.h"
#include "..\..\Graphics\GkAnimatedFont.h"
class GKDLLCLASS GkGameText :
public GkGameEntity
{
public:
static const int GameTextAlignment_Right = 0,
GameTextAlignment_Center = 1,
GameTextAlignment_Left = 2;
GkAnimatedFont *animatedFont;
wchar_t *text;
int textLength, textWidth;
int *textTextureIndices;
int x, y;
bool visible, active, loop;
float framesPerSecond, currentFrame;
int textAlignment;
int characterSpacing;
int maxWidth;
GkGameText::GkGameText(GkAnimatedFont *animatedFont, int x = 0, int y = 0, int characterSpacing = 0, int textAlignment = GameTextAlignment_Right, int maxWidth = 0, float framesPerSecond = 0.0f);
GkGameText::~GkGameText(void);
bool GkGameText::SetText(const wchar_t *text);
void GkGameText::Process(GkGame *game);
void GkGameText::Draw(GkGame *game);
};