This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defparameter *locations* (make-hash-table :test 'eq)) | |
(defclass location () | |
((name :accessor location-name :initarg :name) | |
(description :accessor location-description :initarg :description) | |
(exits :accessor location-exits :initarg :exits))) | |
(defmacro define-location (symbol-name &key name description exits) | |
`(setf (gethash ',symbol-name *locations*) | |
(make-instance 'location |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef WIN32 | |
WSADATA g_wsadata; | |
#define StartSocketLib WSAStartup( MAKEWORD(2, 2), &g_wsadata); | |
#define CloseSocketLib WSACleanup(); | |
#else | |
#define StartSocketLib {} | |
#define CloseSocketLib {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <vector> | |
#include <cstdio> | |
using namespace std; | |
class Test | |
{ | |
public: | |
Test() | |
{ | |
printf(" Test being created!\n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Egoboo - Ui.c | |
#include "Ui.h" | |
#include <string.h> | |
#include <SDL_opengl.h> | |
struct UiContext | |
{ | |
// Tracking control focus stuff | |
UI_ID active; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "egoboo.h" | |
#include "Ui.h" | |
#include "Menu.h" | |
#include "Log.h" | |
// TEMPORARY! | |
#define NET_DONE_SENDING_FILES 10009 | |
#define NET_NUM_FILES_TO_SEND 10010 | |
//-------------------------------------------------------------------------------------------- |
NewerOlder