File: sync_steppable.h

package info (click to toggle)
simutrans 111.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 13,504 kB
  • ctags: 12,645
  • sloc: cpp: 101,849; ansic: 3,466; makefile: 694; sh: 44
file content (24 lines) | stat: -rw-r--r-- 477 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef sync_steppable_h
#define sync_steppable_h


/**
 * Alle synchron bewegten Dinge mssen dieses Interface implementieren.
 *
 * @author Hj. Malthaner
 */
class sync_steppable
{
public:
    /**
     * Methode fr Echtzeitfunktionen eines Objekts.
     * @return false wenn Objekt aus der Liste der synchronen
     * Objekte entfernt werden sol
     * @author Hj. Malthaner
     */
    virtual bool sync_step(long delta_t) = 0;

    virtual ~sync_steppable() {}
};

#endif