File: items.h

package info (click to toggle)
xball 3.0.1-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 936 kB
  • ctags: 964
  • sloc: ansic: 4,612; sh: 3,414; makefile: 521
file content (38 lines) | stat: -rw-r--r-- 1,283 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**********************************************************************
 * file - description
 *
 * Copyright 1993, David Nedde
 *
 * Permission to use, copy, modify, and distribute this software
 * and its documentation for any purpose and without fee is granted
 * provided that the above copyright notice appears in all copies.
 * It is provided "as is" without express or implied warranty.
 **********************************************************************/

#ifndef __ITEMS_H__
#define __ITEMS_H__

#include "list.h"
#include "item.h"

typedef struct {
    list_type list;
    int current;  /* Used to increase efficiency */
} items_struct_type, *items_type;

items_type items__create(/**/);
items_type items__destroy(/*items*/);
item_type  items__get_first(/* items */);
item_type  items__get_next(/* items */);
void       items__add(/* items, item */);
void       items__destroy_all(/* items*/);
void       items__new_item(/* items, x, y, x_vel, y_vel */);
void       items__move_items(/* items, room*/);
void       items__move_items_backwards(/* items, room, count*/);
void       items__rebound_items(/* items, item*/);
void       items__set_visible( /*items, visible*/);

/* Inline functions */
#define items__get_count( items) (list__get_count((items)->list))

#endif