diff options
author | dholland <dholland@NetBSD.org> | 2009-03-14 22:52:52 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2009-03-14 22:52:52 +0000 |
commit | e98a44895c7ca5a00b080fce0b3cbb16bcdff859 (patch) | |
tree | a74a3e03e0056c3de3d2b751b6dea1f59baec1c7 /sail/pl_7.c | |
parent | 5e8d1f0902b592fc872212ecccaca23c8ce85231 (diff) | |
download | bsdgames-darwin-e98a44895c7ca5a00b080fce0b3cbb16bcdff859.tar.gz bsdgames-darwin-e98a44895c7ca5a00b080fce0b3cbb16bcdff859.tar.zst bsdgames-darwin-e98a44895c7ca5a00b080fce0b3cbb16bcdff859.zip |
Create some abstraction for sending messages.
Make a send and receive function for each possible message.
Make these have useful argument signatures.
Hide the list of message codes inside sync.c.
Diffstat (limited to 'sail/pl_7.c')
-rw-r--r-- | sail/pl_7.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sail/pl_7.c b/sail/pl_7.c index cf1d009c..cc2134e4 100644 --- a/sail/pl_7.c +++ b/sail/pl_7.c @@ -1,4 +1,4 @@ -/* $NetBSD: pl_7.c,v 1.31 2009/03/14 19:57:14 dholland Exp $ */ +/* $NetBSD: pl_7.c,v 1.32 2009/03/14 22:52:53 dholland Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)pl_7.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: pl_7.c,v 1.31 2009/03/14 19:57:14 dholland Exp $"); +__RCSID("$NetBSD: pl_7.c,v 1.32 2009/03/14 22:52:53 dholland Exp $"); #endif #endif /* not lint */ @@ -133,7 +133,7 @@ newturn(int n __unused) mf->readyR = R_LOADED; } if (!hasdriver) - Write(W_DDEAD, SHIP(0), 0, 0, 0, 0); + send_ddead(); if (sc_hasprompt) { wmove(scroll_w, sc_line, 0); @@ -147,11 +147,11 @@ newturn(int n __unused) wprintw(scroll_w, "%s%s", sc_prompt, sc_buf); if (turn % 50 == 0) - Write(W_ALIVE, SHIP(0), 0, 0, 0, 0); + send_alive(); if (mf->FS && (!mc->rig1 || windspeed == 6)) - Write(W_FS, ms, 0, 0, 0, 0); + send_fs(ms, 0); if (mf->FS == 1) - Write(W_FS, ms, 2, 0, 0, 0); + send_fs(ms, 2); if (mf->struck) leave(LEAVE_QUIT); |