2010-09-01 10:37:10 +00:00
|
|
|
#ifndef Things_h
|
|
|
|
#define Things_h
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2003-05-06 21:52:58 +00:00
|
|
|
#include <AppKit/AppKit.h>
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-09 11:46:38 +00:00
|
|
|
#include "Entity.h"
|
|
|
|
|
2003-03-18 19:48:24 +00:00
|
|
|
extern id things_i;
|
|
|
|
|
|
|
|
#define ENTITYNAMEKEY "spawn"
|
|
|
|
|
2010-09-01 10:37:10 +00:00
|
|
|
@interface Things:NSObject
|
2003-03-18 19:48:24 +00:00
|
|
|
{
|
|
|
|
id entity_browser_i; // browser
|
|
|
|
id entity_comment_i; // scrolling text window
|
|
|
|
|
|
|
|
id prog_path_i;
|
|
|
|
|
|
|
|
int lastSelected; // last row selected in browser
|
|
|
|
|
|
|
|
id keyInput_i;
|
|
|
|
id valueInput_i;
|
|
|
|
id flags_i;
|
|
|
|
}
|
|
|
|
|
|
|
|
- initEntities;
|
|
|
|
|
|
|
|
- newCurrentEntity;
|
|
|
|
- setSelectedKey:(epair_t *)ep;
|
|
|
|
|
|
|
|
- clearInputs;
|
|
|
|
- (char *)spawnName;
|
|
|
|
|
|
|
|
// UI targets
|
|
|
|
- reloadEntityClasses: sender;
|
|
|
|
- selectEntity: sender;
|
|
|
|
- doubleClickEntity: sender;
|
|
|
|
|
|
|
|
// Action methods
|
|
|
|
- addPair:sender;
|
|
|
|
- delPair:sender;
|
|
|
|
- setAngle:sender;
|
|
|
|
- setFlags:sender;
|
|
|
|
|
|
|
|
|
|
|
|
@end
|
2010-09-01 10:37:10 +00:00
|
|
|
|
|
|
|
#endif//Things_h
|