summaryrefslogtreecommitdiff
path: root/src/game.c
Commit message (Collapse)AuthorAge
* implement part of state_client_play_cards(); added new message type: hello ↵Reiner Herrmann2011-01-25
| | | | reply from server which notifies clients of their player-ids
* Minor changes. Renamed global.[ch] to data_store.[ch], data_store to ↵Mario Kilies2011-01-25
| | | | data_store_t and datamodel() to data_store().
* Removed awkward pnoc_t and refactored its contents to the new ↵Mario Kilies2011-01-25
| | | | player_list_entry_t.
* Created a mainstack datatype. Refactored server game states into separate ↵Mario Kilies2011-01-25
| | | | functions.
* Refactored client game states into separate functions instead of handling ↵Mario Kilies2011-01-25
| | | | them in a huge switch() statement.
* Minor refactoring of game states.Mario Kilies2011-01-25
|
* Remove chosen card from hand.Mario Kilies2011-01-25
|
* ui_display_wnd_current_state() has now optional highlighting of a player in ↵Mario Kilies2011-01-25
| | | | the table and is able to display '-' if the player has not played an open card (This is used to display the window before the actual gameplay has begun).
* little cleanup; enable interrupts (ctrl-c)Reiner Herrmann2011-01-25
|
* use player count instead of MAX_PLAYERS.Reiner Herrmann2011-01-24
| | | | | | this is allowed because only the first $count elements will be sorted by qsort/pnoc_sort, so only pnocs of valid players will be sorted.
* server: send open cards to clientsReiner Herrmann2011-01-24
| | | | client: receive open cards from clients, sort and display them
* receive and store selected (open) cards from playersReiner Herrmann2011-01-24
|
* Merge branch 'master' of ssh://icarus-git/~git/oxenReiner Herrmann2011-01-24
|\
| * Implemented STATE_CLIENT_SELECT_OPEN_CARD.Mario Kilies2011-01-24
| |
* | add mapping between sockets and pnocsReiner Herrmann2011-01-24
|/
* renamed draw_card to mainstack_remove_cardReiner Herrmann2011-01-24
|
* send hands drawn from mainstack to clientReiner Herrmann2011-01-24
|
* added function for drawing cards from main stack; initialize table stacks ↵Reiner Herrmann2011-01-24
| | | | with drawn cards
* Display stack points window.Mario Kilies2011-01-24
|
* Added game loop termination. Commented out debug messages.Mario Kilies2011-01-24
|
* First attempt to implement STATE_CLIENT_WAIT_FOR_HAND_CARDS.Mario Kilies2011-01-24
|
* Huge refactoring of network related code.Mario Kilies2011-01-24
|
* Source code refactoring. Moved net/client/server stuff to 'net' subfolder.Mario Kilies2011-01-24
|
* adapted client_recv_hello to data storeReiner Herrmann2011-01-23
|
* implement function which sends initial stacksReiner Herrmann2011-01-23
|
* added generic net_send function and adapted functions it is usingReiner Herrmann2011-01-23
|
* adapt player_list receive function to data storeReiner Herrmann2011-01-23
|
* started refactoring: separate server process for local client; moved net ↵Reiner Herrmann2011-01-23
| | | | code from main.c to game.c
* completed game loop with all states and pseudo code in real life session :)Reiner Herrmann2011-01-23
|
* Refactored cardstack and tablestacks to card_stack_t and table_stacks_t, ↵Mario Kilies2011-01-16
| | | | that both now are defined as structs rather than arrays. Inserted lots of assert() calls to functions that take pointers as arguments.
* Simplified net_recv(). Refactored 'hand' from array definition to hand_t ↵Mario Kilies2011-01-16
| | | | struct definition.
* Command line parameters hacked in. Moved display stuff in the game loop.Mario Kilies2011-01-15
|
* Removed input handling from game loop.Mario Kilies2011-01-15
|
* Added missing include.Mario Kilies2011-01-05
|
* new state where client waits for cardsReiner Herrmann2011-01-05
|
* fix compilationReiner Herrmann2011-01-05
|
* added first game states and some pseudo codeReiner Herrmann2011-01-05
|
* added game loop entry with mainstack; shuffle it at beginningReiner Herrmann2011-01-04