Gergely POLONKAI
a391b1e8f6
Added the HACKING file for later fill, with only a very basic description
2012-03-25 11:58:14 +02:00
Gergely POLONKAI
e7b142ea31
Added *.bak to global .gitignore
2012-03-25 11:57:49 +02:00
Gergely POLONKAI
738f9742d5
Added some more SQL files for later use. The world Iminiru already uses this structure.
2012-03-25 11:57:12 +02:00
Gergely POLONKAI
d0d763788d
Added the very basic dump of the world Iminiru.
...
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
2012-03-25 11:56:40 +02:00
Gergely POLONKAI
fae9f3c23e
Started re-creating the TODO list structure.
...
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
2012-03-25 11:55:57 +02:00
Gergely POLONKAI
4b61fc505e
Renamed wmud_types.h to wmud-types.h
...
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
2012-03-25 00:16:14 +01:00
Gergely POLONKAI
2ecf738255
Renamed networking.* to game-networking.*
...
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
2012-03-25 00:13:37 +01:00
Gergely POLONKAI
3163ad4783
Finished GtkDoc style code documenting.
...
Added full GtkDoc support
Fixed code comment blocks
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
2012-03-24 23:52:36 +01:00
Gergely POLONKAI
d17203f2a3
Moved maintenance thread code into maintenance.c
...
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
2012-03-24 20:51:06 +01:00
Polonkai Gergely
74e84919d7
Modified the WMUD_COMMAND macro
...
The WMUD_COMMAND macro now automatically prefixes command handlers
with gcmd_. It is convenient.
2012-03-24 19:37:37 +00:00
Polonkai Gergely
570d31ad4c
Code refactoring in networking.c
...
Renamed some client to client_socket, and client_data to client. Simply following naming conventions now.
2012-03-24 19:35:47 +00:00
Polonkai Gergely
7e78b2b7de
Added GtkDoc style in-code documentation
2012-03-24 19:34:36 +00:00
Polonkai Gergely
604c4c4589
Now setting client->authenticated to TRUE upon successful login
...
Also reformatted long code lines
2012-03-23 16:10:07 +00:00
Polonkai Gergely
cc8d1868cd
Added GtkDoc style comments to main.h and players.c
2012-03-23 16:06:01 +00:00
Gergely POLONKAI
486d5bdba6
Merge branch 'new-codebase' of ssh://w00d5t0ck.info/home/polesz/repos/wmud into new-codebase
2012-03-23 16:47:15 +01:00
Gergely POLONKAI
d80ed1820a
Added C file header comments
...
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
2012-03-23 16:45:38 +01:00
Polonkai Gergely
4ac5d60adf
Merge branch 'new-codebase' of /home/polesz/repos/wmud into new-codebase
2012-03-23 15:43:31 +00:00
Polonkai Gergely
f28667db72
Added GtkDoc comments to wmud_types.h
2012-03-23 15:42:58 +00:00
Polonkai Gergely
0d0300b5da
Added GtkDoc comments
2012-03-23 15:42:46 +00:00
Gergely POLONKAI
6ab48b5f7b
Created player authentication code
...
Added code to authenticate the logging in player.
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
2012-03-23 14:40:10 +01:00
Gergely POLONKAI
e7a5e2976f
Added socket_source to wmudClient struct
...
Added socket_source GSource to the wmudClient struct, so it can be removed
upon connection closing. It sometimes caused a bug.
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
2012-03-23 14:38:36 +01:00
Gergely POLONKAI
f44b1ac6d8
Renamed client_callback() to wmud_client_callback()
...
Renamed client_callback() to follow naming conventions.
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
2012-03-23 14:36:43 +01:00
Gergely POLONKAI
42e0254457
Refactored wmud_client_close()
...
Removed the error checking TODO comment from wmud_client_close()
as g_socket_close() doesn't necessarily needs to be checked for errors.
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
2012-03-23 14:34:49 +01:00
Gergely POLONKAI
4f601bb3dd
Created the wmud_player_dup() function
...
This function duplicates a wmudPlayer struct.
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
2012-03-23 14:33:12 +01:00
Gergely POLONKAI
b91ad8d87f
Removed registering field from wmudPlayer
2012-03-23 13:07:27 +01:00
Polonkai Gergely
f92c9f5ade
Created wmud_player_auth()
2012-03-23 10:39:18 +00:00
Polonkai Gergely
82199f0737
Merge branch 'new-codebase' of /home/polesz/repos/wmud into new-codebase
...
Conflicts:
configure.ac
src/main.c
2012-03-23 10:08:12 +00:00
Polonkai Gergely
9cdab465f1
Added password requesting
2012-03-23 10:05:51 +00:00
Polonkai Gergely
c082fc4f3c
Added basic maintenance code, with lots of hurtful debug log
2012-03-23 10:04:53 +00:00
Polonkai Gergely
0302c84815
M4 macro call fix for AC_DEFINE
2012-03-22 18:58:39 +00:00
Polonkai Gergely
cf01fddc15
Moved MAX_RECV_LEN into config.h
2012-03-22 18:57:48 +00:00
Polonkai Gergely
edf1ea0a59
Moved MAX_RECV_LEN into config.h
2012-03-22 18:49:59 +00:00
Polonkai Gergely
a8c7a04cfe
Moved the game loop into a new thread (yet this is the only one)
...
Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
2012-03-22 18:46:15 +01:00
Polonkai Gergely
c054543641
Changed log level of "Connection closed" messages to INFO
...
Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
2012-03-22 18:45:45 +01:00
Gergely Polonkai (W00d5t0ck)
5aa4056633
Made this commit on a wrong branch...
...
added basic player handling method (no login yet)
2012-03-22 18:34:39 +01:00
Gergely Polonkai (W00d5t0ck)
c0a85622be
Added basic configuration file parsing
...
* Created example configuration file
* Added wmud_config_init() to parse configuration file
Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
2012-03-22 12:21:05 +01:00
Gergely Polonkai (W00d5t0ck)
ec5fec631f
Removed the wmud_interpreter_init() function
2012-03-22 12:19:42 +01:00
Gergely Polonkai (W00d5t0ck)
d888ed9104
Added function comments in main.c. Removed some debug texts from main.c
2012-03-22 11:00:59 +01:00
Polonkai Gergely
63c37a8791
Minor modifications and code cleaning
...
* Created a wmud_types.h file to hold all the basic data types used by wMUD
* Redefined wmud_db_init() so error reporting will be possible
2012-03-22 09:49:19 +00:00
Gergely POLONKAI
71ffb83626
Player data processing, minor changes
...
* Added .anjuta and tags file to .gitignore
* Added new client states
* Moved client connection closing to a separate function
* Added conditional processing of client buffer depending on client state
* Created the basic player structure
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
2012-03-21 16:07:02 +01:00
Polonkai Gergely
98967395c4
Started creating database code
2012-03-21 14:59:39 +00:00
Gergely Polonkai (W00d5t0ck)
b29f7c9063
Added a randomized response on unknown commands.
...
Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
2012-03-14 20:19:05 +01:00
Polonkai Gergely
c715d19b2d
Command parsing rewritten
...
* The command parsing code is completely rewritten. I'm almost sure it's not as
effective as it could be, but it's kinda fast. Also, a basic QUIT command is
already added to the system, which does nothing yet.
2012-03-14 19:06:02 +00:00
Polonkai Gergely
be3e17fd07
Added wmud_client_send() and a client state field.
...
* The wmudCLient struct now has a state field, which indicates the current
state of the client (we are waiting her to log in, or to enter a command,
etc.)
* Created the wmud_client_send() function to send formatted strings to a client
2012-03-14 19:03:54 +00:00
Polonkai Gergely
742e8ede7f
Re-organized to-do list
...
TODO list is a bit messy, so I'm trying to reorganize it over time; this is the
first step.
2012-03-14 19:02:19 +00:00
Polonkai Gergely
1eb1482f35
Added *.db to .gitignore
...
*.db files are the actual SQLite database files. Their skeletons will be added
to the Git repository later.
2012-03-14 19:00:52 +00:00
Gergely Polonkai (W00d5t0ck)
c19ba376d3
Fixed tokenizer code; added command list structure
...
Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
2012-03-13 17:24:03 +01:00
Polonkai Gergely
74fe14660a
Added a basic (non-working) command interpreter.
...
Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
2012-03-13 02:22:22 +01:00
Polonkai Gergely
84ba83c8ba
Fixed %ld to %d to supress warnings during testing.
...
Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
2012-03-13 02:21:59 +01:00
Polonkai Gergely
f06e2636af
Added necessary includes to networking.h
...
Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
2012-03-13 02:20:17 +01:00