2010-08-17 09:28:20 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
* $URL$
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This code is based on original Hugo Trilogy source code
|
|
|
|
*
|
|
|
|
* Copyright (c) 1989-1995 David P. Gray
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HUGO_UTIL_H
|
|
|
|
#define HUGO_UTIL_H
|
|
|
|
|
|
|
|
namespace Hugo {
|
|
|
|
|
|
|
|
enum seqTextUtil {
|
2010-11-11 15:01:57 +00:00
|
|
|
kGameOver = 0
|
2010-08-17 09:28:20 +00:00
|
|
|
};
|
|
|
|
|
2011-01-23 00:05:52 +00:00
|
|
|
static const int kMaxStrLength = 1024;
|
|
|
|
|
2010-08-17 09:28:20 +00:00
|
|
|
namespace Utils {
|
|
|
|
int firstBit(byte data);
|
|
|
|
int lastBit(byte data);
|
2010-09-27 21:50:11 +00:00
|
|
|
|
|
|
|
void gameOverMsg();
|
2010-08-17 09:28:20 +00:00
|
|
|
void reverseByte(byte *data);
|
2010-09-27 21:50:11 +00:00
|
|
|
|
2010-08-27 09:48:53 +00:00
|
|
|
char *Box(box_t, const char *, ...) GCC_PRINTF(2, 3);
|
2010-09-27 21:50:11 +00:00
|
|
|
char *strlwr(char *buffer);
|
2010-08-17 09:28:20 +00:00
|
|
|
}
|
|
|
|
|
2010-08-27 09:48:53 +00:00
|
|
|
} // End of namespace Hugo
|
|
|
|
|
2010-08-17 09:28:20 +00:00
|
|
|
#endif
|