/* Random object descriptions. */
/****************************************************************/
-char *
+static char *
description (void)
{
int r;
/* Placing objects. */
/****************************************************************/
-void
+static void
place_in_arena_at_xy (GtkWidget *item, int x, int y)
{
arena[x][y] = item;
}
}
-void
+static void
place_in_arena_randomly (GtkWidget *item)
{
int x, y;
/* Labels representing things the robot might find. */
/****************************************************************/
-GtkWidget *
+static GtkWidget *
random_character (gchar *description)
{
gchar character[2] = { random() % ('~'-'!') + '!', 0 };
/* Talking back to the user. */
/****************************************************************/
-void
+static void
show_message (const char *message)
{
HildonNote* note = HILDON_NOTE
/****************************************************************/
/* Loading the non-kitten objects. */
/****************************************************************/
-void
+
+static void
ensure_messages_loaded (void)
{
FILE *nki_file = NULL;
fclose (nki_file);
}
-void
+static void
load_images (void)
{
robot_pic = gdk_pixbuf_new_from_file ("/usr/share/rfk/rfk-robot.png", NULL);
/****************************************************************/
/* Stop doing that, and do something else. */
/****************************************************************/
+
static void
switch_state (StateOfPlay new_state)
{
/****************************************************************/
/* Things we need DBus for: online help, and vibration. */
/****************************************************************/
+
static void
call_dbus (DBusBusType type,
char *name,
{ GDK_Up, 'k', 0, -1 }
};
-gboolean
+static gboolean
move_robot (guint8 whichway)
{
GtkWidget *new_space;
/* Event handlers. */
/****************************************************************/
-gboolean
+static gboolean
on_window_clicked (GtkWidget *widget,
GdkEventButton *event,
gpointer user_data)
return TRUE;
}
-gboolean
+static gboolean
on_key_pressed (GtkWidget *widget,
GdkEventKey *event,
gpointer user_data)
return FALSE;
}
-void
+static void
play_game (gpointer button, gpointer data)
{
switch_state (STATE_PLAYING);