- Redid the draw items and draw fields code to draw just on one space rather than the entire area. - Fixed bug where special spots were not masked properly. - Removed some large chunks of commented, obsolete code. - Found and fixed bug where the instant help system caused the game to believe you had stolen items when in fact you hadn't. - Added enum for special node context (ie the context in which a special node is being run); not really used yet though. - Added support and graphic for forcecage, and graphic for stone block; mechanics not yet implemented. git-svn-id: http://openexile.googlecode.com/svn/trunk@88 4ebdad44-0ea0-11de-aab3-ff745001d230
42 lines
605 B
C++
42 lines
605 B
C++
/*
|
|
* special.h
|
|
* BoE
|
|
*
|
|
* Created by Celtic Minstrel on 20/04/09.
|
|
*
|
|
*/
|
|
|
|
#ifndef SPECIAL_H
|
|
#define SPECIAL_H
|
|
|
|
#include <iosfwd>
|
|
|
|
namespace legacy { struct special_node_type; };
|
|
|
|
class cSpecial {
|
|
public:
|
|
short type;
|
|
short sd1;
|
|
short sd2;
|
|
short pic;
|
|
short m1;
|
|
short m2;
|
|
short ex1a;
|
|
short ex1b;
|
|
short ex2a;
|
|
short ex2b;
|
|
short jumpto;
|
|
|
|
cSpecial();
|
|
cSpecial& operator = (legacy::special_node_type& old);
|
|
void writeTo(std::ostream& file);
|
|
};
|
|
|
|
struct pending_special_type {
|
|
spec_num_t spec;
|
|
eSpecContext mode;
|
|
unsigned char type; // 0 - scen, 1 - out, 2 - town
|
|
location where;
|
|
};
|
|
|
|
#endif |