git repos / blockattack-game

blame: source/code/BlockGame.hpp

normal view · raw

89c4a3a6 sago007 2008-08-29 14:32 1
/*
c53e6443 sago007 2012-04-17 11:04 2
===========================================================================
c53e6443 sago007 2012-04-17 11:04 3
blockattack - Block Attack - Rise of the Blocks
c53e6443 sago007 2012-04-17 11:04 4
Copyright (C) 2005-2012 Poul Sander
c53e6443 sago007 2012-04-17 11:04 5
c53e6443 sago007 2012-04-17 11:04 6
This program is free software: you can redistribute it and/or modify
c53e6443 sago007 2012-04-17 11:04 7
it under the terms of the GNU General Public License as published by
c53e6443 sago007 2012-04-17 11:04 8
the Free Software Foundation, either version 2 of the License, or
c53e6443 sago007 2012-04-17 11:04 9
(at your option) any later version.
c53e6443 sago007 2012-04-17 11:04 10
c53e6443 sago007 2012-04-17 11:04 11
This program is distributed in the hope that it will be useful,
c53e6443 sago007 2012-04-17 11:04 12
but WITHOUT ANY WARRANTY; without even the implied warranty of
c53e6443 sago007 2012-04-17 11:04 13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
c53e6443 sago007 2012-04-17 11:04 14
GNU General Public License for more details.
c53e6443 sago007 2012-04-17 11:04 15
c53e6443 sago007 2012-04-17 11:04 16
You should have received a copy of the GNU General Public License
c53e6443 sago007 2012-04-17 11:04 17
along with this program.  If not, see http://www.gnu.org/licenses/
c53e6443 sago007 2012-04-17 11:04 18
c53e6443 sago007 2012-04-17 11:04 19
Source information and contacts persons can be found at
021de090 sago007 2015-12-30 18:56 20
http://blockattack.net
c53e6443 sago007 2012-04-17 11:04 21
===========================================================================
c53e6443 sago007 2012-04-17 11:04 22
*/
89c4a3a6 sago007 2008-08-29 14:32 23
17916a2e sago007 2010-11-07 11:26 24
#ifndef BLOCKGAME_HPP
17916a2e sago007 2010-11-07 11:26 25
#define BLOCKGAME_HPP 1
17916a2e sago007 2010-11-07 11:26 26
32c9b349 sago007 2008-11-20 18:14 27
#include "stats.h"
32c9b349 sago007 2008-11-20 18:14 28
#include "common.h"
17916a2e sago007 2010-11-07 11:26 29
17916a2e sago007 2010-11-07 11:26 30
#define NUMBEROFCHAINS 100
69862ef6 sago007 2015-08-22 17:24 31
#define BLOCKWAIT 100000
69862ef6 sago007 2015-08-22 17:24 32
#define BLOCKHANG 1000
32c9b349 sago007 2008-11-20 18:14 33
6c9b4cd7 sago007 2012-05-01 19:34 34
#define ACTION_UPDATE 0
6c9b4cd7 sago007 2012-05-01 19:34 35
#define ACTION_MOVECURSOR 1
6c9b4cd7 sago007 2012-05-01 19:34 36
#define ACTION_MOVECURSORTO 2
6c9b4cd7 sago007 2012-05-01 19:34 37
#define ACTION_SWITCH 3
6c9b4cd7 sago007 2012-05-01 19:34 38
#define ACTION_PUSH 4
6c9b4cd7 sago007 2012-05-01 19:34 39
#define ACTION_CREATEGARBAGE 5
6c9b4cd7 sago007 2012-05-01 19:34 40
#define ACTION_CREATEGRAYGARBAGE 6
6c9b4cd7 sago007 2012-05-01 19:34 41
#define ACTION_GAMEOVER 7
6c9b4cd7 sago007 2012-05-01 19:34 42
#define ACTION_WIN 8
6c9b4cd7 sago007 2012-05-01 19:34 43
#define ACTION_DRAW 9
6c9b4cd7 sago007 2012-05-01 19:34 44
#define ACTION_GAMESPEED 10
6c9b4cd7 sago007 2012-05-01 19:34 45
#define ACTION_HANDICAP 11
6c9b4cd7 sago007 2012-05-01 19:34 46
#define ACTION_NEW 12
6c9b4cd7 sago007 2012-05-01 19:34 47
#define ACTION_NEWTT 13
6c9b4cd7 sago007 2012-05-01 19:34 48
#define ACTION_NEWVS 14
6c9b4cd7 sago007 2012-05-01 19:34 49
#define ACTION_STARTBLOCKS 15
6c9b4cd7 sago007 2012-05-01 19:34 50
#define ACTION_NOP 16
6c9b4cd7 sago007 2012-05-01 19:34 51
89c4a3a6 sago007 2008-08-29 14:32 52
////////////////////////////////////////////////////////////////////////////////
89c4a3a6 sago007 2008-08-29 14:32 53
//The BloackGame class represents a board, score, time etc. for a single player/
89c4a3a6 sago007 2008-08-29 14:32 54
////////////////////////////////////////////////////////////////////////////////
c53e6443 sago007 2012-04-17 11:04 55
class BlockGame
c53e6443 sago007 2012-04-17 11:04 56
{
89c4a3a6 sago007 2008-08-29 14:32 57
private:
c53e6443 sago007 2012-04-17 11:04 58
	int prevTowerHeight;
c53e6443 sago007 2012-04-17 11:04 59
	bool bGarbageFallLeft;
89c4a3a6 sago007 2008-08-29 14:32 60
c53e6443 sago007 2012-04-17 11:04 61
	Uint32 nextGarbageNumber;
c53e6443 sago007 2012-04-17 11:04 62
	Uint32 pushedPixelAt;
c53e6443 sago007 2012-04-17 11:04 63
	Uint32 nrPushedPixel, nrFellDown, nrStops;
c53e6443 sago007 2012-04-17 11:04 64
	bool garbageToBeCleared[7][30];
c53e6443 sago007 2012-04-17 11:04 65
	Uint32 lastAImove;
89c4a3a6 sago007 2008-08-29 14:32 66
c53e6443 sago007 2012-04-17 11:04 67
	Sint16 AI_LineOffset; //how many lines have changed since command
c53e6443 sago007 2012-04-17 11:04 68
	Uint32 hangTicks;    //How many times have hang been decreased?
c53e6443 sago007 2012-04-17 11:04 69
	//int the two following index 0 may NOT be used (what the fuck did I meen?)
c53e6443 sago007 2012-04-17 11:04 70
	Uint8 chainSize[NUMBEROFCHAINS]; //Contains the chains
c53e6443 sago007 2012-04-17 11:04 71
	bool chainUsed[NUMBEROFCHAINS];   //True if the chain is used
89c4a3a6 sago007 2008-08-29 14:32 72
c53e6443 sago007 2012-04-17 11:04 73
	Uint32 nextRandomNumber;
89c4a3a6 sago007 2008-08-29 14:32 74
c53e6443 sago007 2012-04-17 11:04 75
	Uint16 rand2();
c53e6443 sago007 2012-04-17 11:04 76
	int firstUnusedChain();
89c4a3a6 sago007 2008-08-29 14:32 77
e1290bdf sago007 2010-10-25 19:56 78
//public:
6b1dc7a6 sago007 2010-11-08 21:03 79
protected:
c53e6443 sago007 2012-04-17 11:04 80
	int lastCounter;
c53e6443 sago007 2012-04-17 11:04 81
	string strHolder;
c53e6443 sago007 2012-04-17 11:04 82
	bool bDraw;
c53e6443 sago007 2012-04-17 11:04 83
	unsigned int ticks;
80b830cd sago007 2012-08-19 17:51 84
	unsigned int gameStartedAt;
80b830cd sago007 2012-08-19 17:51 85
	unsigned int gameEndedAfter;		//How long did the game last?
c53e6443 sago007 2012-04-17 11:04 86
	int linesCleared;
c53e6443 sago007 2012-04-17 11:04 87
	int TowerHeight;
c53e6443 sago007 2012-04-17 11:04 88
	BlockGame *garbageTarget;
c53e6443 sago007 2012-04-17 11:04 89
	Sint32 board[7][30];
c53e6443 sago007 2012-04-17 11:04 90
	int stop;
c53e6443 sago007 2012-04-17 11:04 91
	int speedLevel;
c53e6443 sago007 2012-04-17 11:04 92
	int pixels;
c53e6443 sago007 2012-04-17 11:04 93
	int MovesLeft;
c53e6443 sago007 2012-04-17 11:04 94
	bool timetrial, stageClear, vsMode, puzzleMode;
c53e6443 sago007 2012-04-17 11:04 95
	int Level; //Only used in stageClear and puzzle (not implemented)
c53e6443 sago007 2012-04-17 11:04 96
	int stageClearLimit; //stores number of lines user must clear to win
c53e6443 sago007 2012-04-17 11:04 97
	int combo;
c53e6443 sago007 2012-04-17 11:04 98
	int chain;
c53e6443 sago007 2012-04-17 11:04 99
	int cursorx; //stores cursor position
c53e6443 sago007 2012-04-17 11:04 100
	int cursory; // -||-
c53e6443 sago007 2012-04-17 11:04 101
	double speed, baseSpeed; //factor for speed. Lower value = faster gameplay
c53e6443 sago007 2012-04-17 11:04 102
	Uint32 score;
c53e6443 sago007 2012-04-17 11:04 103
	bool bGameOver;
c53e6443 sago007 2012-04-17 11:04 104
	bool hasWonTheGame;
c53e6443 sago007 2012-04-17 11:04 105
	int AI_MoveSpeed;   //How often will the computer move? milliseconds
c53e6443 sago007 2012-04-17 11:04 106
	bool AI_Enabled;
c53e6443 sago007 2012-04-17 11:04 107
c53e6443 sago007 2012-04-17 11:04 108
	Uint32 handicap;
c53e6443 sago007 2012-04-17 11:04 109
c53e6443 sago007 2012-04-17 11:04 110
c53e6443 sago007 2012-04-17 11:04 111
	int AIlineToClear;
c53e6443 sago007 2012-04-17 11:04 112
c53e6443 sago007 2012-04-17 11:04 113
	short AIstatus;   //Status flags:
c53e6443 sago007 2012-04-17 11:04 114
	//0: nothing, 2: clear tower, 3: clear horisontal, 4: clear vertical
c53e6443 sago007 2012-04-17 11:04 115
	//1: make more lines, 5: make 2 lines, 6: make 1 line
6b1dc7a6 sago007 2010-11-08 21:03 116
e1290bdf sago007 2010-10-25 19:56 117
public:
c53e6443 sago007 2012-04-17 11:04 118
8f632c05 sago007 2015-08-22 16:21 119
	std::string name;
c53e6443 sago007 2012-04-17 11:04 120
0f031889 sago007 2012-05-01 19:57 121
public:
c53e6443 sago007 2012-04-17 11:04 122
	//Constructor
c53e6443 sago007 2012-04-17 11:04 123
	BlockGame();
c53e6443 sago007 2012-04-17 11:04 124
c53e6443 sago007 2012-04-17 11:04 125
	//Deconstructor, never really used... game used to crash when called, cause of the way sBoard was created
c53e6443 sago007 2012-04-17 11:04 126
	//It should work now and can be used if we want to assign more players in network games that we need to free later
c53e6443 sago007 2012-04-17 11:04 127
	~BlockGame();
c53e6443 sago007 2012-04-17 11:04 128
c53e6443 sago007 2012-04-17 11:04 129
	void setGameSpeed(Uint8 globalSpeedLevel);
c53e6443 sago007 2012-04-17 11:04 130
	void setHandicap(Uint8 globalHandicap);
c53e6443 sago007 2012-04-17 11:04 131
	//Set the move speed of the AI based on the aiLevel parameter
c53e6443 sago007 2012-04-17 11:04 132
	//Also enables AI
c53e6443 sago007 2012-04-17 11:04 133
	void setAIlevel(Uint8 aiLevel);
027b5cfd sago007 2015-08-23 14:27 134
	Uint8 getAIlevel()  const;
229e212d sago007 2015-08-22 17:14 135
	
313ecd1b sago007 2015-08-22 20:38 136
	virtual void AddText(int x, int y, const std::string& text, int time) const  {}
313ecd1b sago007 2015-08-22 20:38 137
	virtual void AddBall(int x, int y, bool right, int color) const  {}
313ecd1b sago007 2015-08-22 20:38 138
	virtual void AddExplosion(int x, int y) const  {}
313ecd1b sago007 2015-08-22 20:38 139
	virtual void PlayerWonEvent() const  {}
027b5cfd sago007 2015-08-23 14:27 140
	virtual void DrawEvent() const {}
313ecd1b sago007 2015-08-22 20:38 141
	virtual void BlockPopEvent() const  {}
313ecd1b sago007 2015-08-22 20:38 142
	virtual void LongChainDoneEvent() const  {}
313ecd1b sago007 2015-08-22 20:38 143
	virtual void TimeTrialEndEvent() const  {}
313ecd1b sago007 2015-08-22 20:38 144
	virtual void EndlessHighscoreEvent() const  {}
229e212d sago007 2015-08-22 17:14 145
	
027b5cfd sago007 2015-08-23 14:27 146
	int GetScore() const;
027b5cfd sago007 2015-08-23 14:27 147
	int GetHandicap() const;
027b5cfd sago007 2015-08-23 14:27 148
	bool isGameOver() const;
027b5cfd sago007 2015-08-23 14:27 149
	Sint32 GetGameStartedAt() const;
027b5cfd sago007 2015-08-23 14:27 150
	Sint32 GetGameEndedAt() const;
027b5cfd sago007 2015-08-23 14:27 151
	bool isTimeTrial() const;
027b5cfd sago007 2015-08-23 14:27 152
	bool isStageClear() const;
027b5cfd sago007 2015-08-23 14:27 153
	bool isVsMode() const;
027b5cfd sago007 2015-08-23 14:27 154
	bool isPuzzleMode() const;
027b5cfd sago007 2015-08-23 14:27 155
	int GetLinesCleared() const;
027b5cfd sago007 2015-08-23 14:27 156
	int GetStageClearLimit() const;
027b5cfd sago007 2015-08-23 14:27 157
	int GetChains() const;
027b5cfd sago007 2015-08-23 14:27 158
	int GetPixels() const;
027b5cfd sago007 2015-08-23 14:27 159
	int GetSpeedLevel() const;
027b5cfd sago007 2015-08-23 14:27 160
	int GetTowerHeight() const;
027b5cfd sago007 2015-08-23 14:27 161
	int GetCursorX() const;
027b5cfd sago007 2015-08-23 14:27 162
	int GetCursorY() const;
c53e6443 sago007 2012-04-17 11:04 163
	void MoveCursorTo(int x, int y);
027b5cfd sago007 2015-08-23 14:27 164
	bool GetIsWinner() const;
c53e6443 sago007 2012-04-17 11:04 165
	//Instead of creating new object new game is called, to prevent memory leaks
229e212d sago007 2015-08-22 17:14 166
	void NewGame(unsigned int ticks);
229e212d sago007 2015-08-22 17:14 167
	void NewTimeTrialGame(unsigned int ticks);
c53e6443 sago007 2012-04-17 11:04 168
	//Starts a new stage game, takes level as input!
229e212d sago007 2015-08-22 17:14 169
	void NewStageGame(int level, unsigned int ticks);
229e212d sago007 2015-08-22 17:14 170
	void NewPuzzleGame(int level, unsigned int ticks);
c53e6443 sago007 2012-04-17 11:04 171
	//Replay the current level
c53e6443 sago007 2012-04-17 11:04 172
	void retryLevel(unsigned int ticks);
c53e6443 sago007 2012-04-17 11:04 173
	//Play the next level
c53e6443 sago007 2012-04-17 11:04 174
	void nextLevel(unsigned int ticks);
c53e6443 sago007 2012-04-17 11:04 175
	//Starts new Vs Game (two Player)
229e212d sago007 2015-08-22 17:14 176
	void NewVsGame(BlockGame *target,unsigned int ticks);
c53e6443 sago007 2012-04-17 11:04 177
	//Starts new Vs Game (two Player)
229e212d sago007 2015-08-22 17:14 178
	void NewVsGame(BlockGame *target, bool AI,unsigned int ticks);
0f031889 sago007 2012-05-01 19:57 179
	void putStartBlocks(Uint32 n);
0f031889 sago007 2012-05-01 19:57 180
	//Creates garbage using a given wide and height
0f031889 sago007 2012-05-01 19:57 181
	bool CreateGarbage(int wide, int height);
0f031889 sago007 2012-05-01 19:57 182
	//Creates garbage using a given wide and height
0f031889 sago007 2012-05-01 19:57 183
	bool CreateGreyGarbage();
0f031889 sago007 2012-05-01 19:57 184
	//prints "Game Over" and ends game
0f031889 sago007 2012-05-01 19:57 185
	void SetGameOver();
0f031889 sago007 2012-05-01 19:57 186
	bool GetAIenabled();
18055aa0 sago007 2012-06-05 19:43 187
	bool IsNearDeath();
0f031889 sago007 2012-05-01 19:57 188
	//Moves the cursor, receaves N,S,E or W as a char an moves as desired
0f031889 sago007 2012-05-01 19:57 189
	void MoveCursor(char way);
0f031889 sago007 2012-05-01 19:57 190
	//switches the two blocks at the cursor position, unless game over
0f031889 sago007 2012-05-01 19:57 191
	void SwitchAtCursor();
0f031889 sago007 2012-05-01 19:57 192
	//Generates a new line and moves the field one block up (restart puzzle mode)
0f031889 sago007 2012-05-01 19:57 193
	void PushLine();
80b830cd sago007 2012-08-19 17:51 194
	void Update(unsigned int newtick);
80b830cd sago007 2012-08-19 17:51 195
	void PerformAction(unsigned int tick, int action, string param);
07383b8f sago007 2012-05-11 21:00 196
	/**
b4f1d3cf sago007 2012-08-20 21:28 197
	 *
b4f1d3cf sago007 2012-08-20 21:28 198
	 * @param tick Tick of the action
b4f1d3cf sago007 2012-08-20 21:28 199
	 * @param action The action
b4f1d3cf sago007 2012-08-20 21:28 200
	 * @param param Params.
b4f1d3cf sago007 2012-08-20 21:28 201
	 * @return 1 if an action was selected
b4f1d3cf sago007 2012-08-20 21:28 202
	 */
80b830cd sago007 2012-08-19 17:51 203
	int GotAction(unsigned int &tick,int &action,string &param);
c53e6443 sago007 2012-04-17 11:04 204
	//Prints "winner" and ends game
c53e6443 sago007 2012-04-17 11:04 205
	void setPlayerWon();
c53e6443 sago007 2012-04-17 11:04 206
	//void SetGameOver();
c53e6443 sago007 2012-04-17 11:04 207
	//Prints "draw" and ends the game
c53e6443 sago007 2012-04-17 11:04 208
	void setDraw();
e1290bdf sago007 2010-10-25 19:56 209
private:
c53e6443 sago007 2012-04-17 11:04 210
	//Test if LineNr is an empty line, returns false otherwise.
ca486238 sago007 2015-08-23 15:12 211
	bool LineEmpty(int lineNr) const;
c53e6443 sago007 2012-04-17 11:04 212
	//Test if the entire board is empty (used for Puzzles)
ca486238 sago007 2015-08-23 15:12 213
	bool BoardEmpty() const;
c53e6443 sago007 2012-04-17 11:04 214
	//Anything that the user can't move? In that case Game Over cannot occur
ca486238 sago007 2015-08-23 15:12 215
	bool hasStaticContent() const;
c53e6443 sago007 2012-04-17 11:04 216
	void putStartBlocks();
c53e6443 sago007 2012-04-17 11:04 217
	//decreases hang for all hanging blocks and wait for waiting blocks
c53e6443 sago007 2012-04-17 11:04 218
	void ReduceStuff();
c53e6443 sago007 2012-04-17 11:04 219
	//Clears garbage, must take one the lower left corner!
c53e6443 sago007 2012-04-17 11:04 220
	int GarbageClearer(int x, int y, int number, bool aLineToClear, int chain);
c53e6443 sago007 2012-04-17 11:04 221
	//Marks garbage that must be cleared
c53e6443 sago007 2012-04-17 11:04 222
	int GarbageMarker(int x, int y);
c53e6443 sago007 2012-04-17 11:04 223
	int FirstGarbageMarker(int x, int y);
c53e6443 sago007 2012-04-17 11:04 224
	//Clear Blocks if 3 or more is alligned (naive implemented)
c53e6443 sago007 2012-04-17 11:04 225
	void ClearBlocks();
c53e6443 sago007 2012-04-17 11:04 226
	//Moves all peaces a spot down if possible
c53e6443 sago007 2012-04-17 11:04 227
	int FallBlock(int x, int y, int number);
c53e6443 sago007 2012-04-17 11:04 228
	//Makes all Garbage fall one spot
c53e6443 sago007 2012-04-17 11:04 229
	void GarbageFall();
c53e6443 sago007 2012-04-17 11:04 230
	//Makes the blocks fall (it doesn't test time, this must be done before hand)
c53e6443 sago007 2012-04-17 11:04 231
	void FallDown();
c53e6443 sago007 2012-04-17 11:04 232
	//Pushes a single pixel, so it appears to scrool
c53e6443 sago007 2012-04-17 11:04 233
	void PushPixels();
c53e6443 sago007 2012-04-17 11:04 234
	//See how high the tower is, saved in integer TowerHeight
c53e6443 sago007 2012-04-17 11:04 235
	void FindTowerHeight();
89c4a3a6 sago007 2008-08-29 14:32 236
///////////////////////////////////////////////////////////////////////////
89c4a3a6 sago007 2008-08-29 14:32 237
/////////////////////////// AI starts here! ///////////////////////////////
89c4a3a6 sago007 2008-08-29 14:32 238
///////////////////////////////////////////////////////////////////////////
c53e6443 sago007 2012-04-17 11:04 239
	//First the helpet functions:
c53e6443 sago007 2012-04-17 11:04 240
	int nrOfType(int line, int type);
c53e6443 sago007 2012-04-17 11:04 241
	int AIcolorToClear;
c53e6443 sago007 2012-04-17 11:04 242
	//See if a combo can be made in this line
c53e6443 sago007 2012-04-17 11:04 243
	int horiInLine(int line);
c53e6443 sago007 2012-04-17 11:04 244
	bool horiClearPossible();
c53e6443 sago007 2012-04-17 11:04 245
	//the Line Has Unmoveable Objects witch might stall the AI
c53e6443 sago007 2012-04-17 11:04 246
	bool lineHasGarbage(int line);
c53e6443 sago007 2012-04-17 11:04 247
	//Types 0..6 in line
c53e6443 sago007 2012-04-17 11:04 248
	int nrOfRealTypes(int line);
c53e6443 sago007 2012-04-17 11:04 249
	//See if there is a tower
c53e6443 sago007 2012-04-17 11:04 250
	bool ThereIsATower();
c53e6443 sago007 2012-04-17 11:04 251
	double firstInLine1(int line);
c53e6443 sago007 2012-04-17 11:04 252
	//returns the first coordinate of the block of type
c53e6443 sago007 2012-04-17 11:04 253
	double firstInLine(int line, int type);
c53e6443 sago007 2012-04-17 11:04 254
	//There in the line shall we move
c53e6443 sago007 2012-04-17 11:04 255
	int closestTo(int line, int place);
c53e6443 sago007 2012-04-17 11:04 256
	//The AI will remove a tower
c53e6443 sago007 2012-04-17 11:04 257
	void AI_ClearTower();
c53e6443 sago007 2012-04-17 11:04 258
	//The AI will try to clear block horisontally
c53e6443 sago007 2012-04-17 11:04 259
	void AI_ClearHori();
c53e6443 sago007 2012-04-17 11:04 260
	//Test if vertical clear is possible
c53e6443 sago007 2012-04-17 11:04 261
	bool veriClearPossible();
c53e6443 sago007 2012-04-17 11:04 262
	//There in the line shall we move
c53e6443 sago007 2012-04-17 11:04 263
	int closestTo(int line, int type, int place);
c53e6443 sago007 2012-04-17 11:04 264
	//The AI will try to clear blocks vertically
c53e6443 sago007 2012-04-17 11:04 265
	void AI_ClearVertical();
c53e6443 sago007 2012-04-17 11:04 266
	bool firstLineCreated;
c53e6443 sago007 2012-04-17 11:04 267
	void AI_Move();
89c4a3a6 sago007 2008-08-29 14:32 268
//////////////////////////////////////////////////////////////////////////
89c4a3a6 sago007 2008-08-29 14:32 269
///////////////////////////// AI ends here! //////////////////////////////
89c4a3a6 sago007 2008-08-29 14:32 270
//////////////////////////////////////////////////////////////////////////
89c4a3a6 sago007 2008-08-29 14:32 271
79d3c1d3 sago007 2012-05-05 15:54 272
	void PushLineInternal();
c53e6443 sago007 2012-04-17 11:04 273
	//Updates evrything, if not called nothing happends
c53e6443 sago007 2012-04-17 11:04 274
	void Update();
80b830cd sago007 2012-08-19 17:51 275
	void UpdateInternal(unsigned int newtick);
17916a2e sago007 2010-11-07 11:26 276
};
89c4a3a6 sago007 2008-08-29 14:32 277
////////////////////////////////////////////////////////////////////////////////
89c4a3a6 sago007 2008-08-29 14:32 278
///////////////////////// BlockAttack class end ////////////////////////////////
89c4a3a6 sago007 2008-08-29 14:32 279
////////////////////////////////////////////////////////////////////////////////
17916a2e sago007 2010-11-07 11:26 280
17916a2e sago007 2010-11-07 11:26 281
#endif
1970-01-01 00:00 282