~ubuntu-branches/debian/sid/stella/sid

« back to all changes in this revision

Viewing changes to src/emucore/TIA.hxx

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2012-06-02 07:33:16 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20120602073316-20r4hr32t4oj36u9
Tags: 3.7-1
* New upstream version.
* Update description and documentation with new features in 3.7, notably
  Blargg TV filters (replacing the filters available in versions 3.4.1
  and earlier).
* Switch to debhelper compatibility level 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
// See the file "License.txt" for information on usage and redistribution of
15
15
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
16
16
//
17
 
// $Id: TIA.hxx 2366 2012-01-22 21:01:13Z stephena $
 
17
// $Id: TIA.hxx 2449 2012-04-20 21:32:24Z stephena $
18
18
//============================================================================
19
19
 
20
20
#ifndef TIA_HXX
41
41
  be displayed on screen.
42
42
 
43
43
  @author  Bradford W. Mott
44
 
  @version $Id: TIA.hxx 2366 2012-01-22 21:01:13Z stephena $
 
44
  @version $Id: TIA.hxx 2449 2012-04-20 21:32:24Z stephena $
45
45
*/
46
46
class TIA : public Device
47
47
{
270
270
    bool scanlinePos(uInt16& x, uInt16& y) const;
271
271
 
272
272
    /**
273
 
      Enables/disables all TIABit bits.  Note that disabling a graphical
274
 
      object also disables its collisions.
275
 
 
276
 
      @param mode  Whether to enable or disable all bits
277
 
    */
278
 
    void enableBits(bool mode);
279
 
 
280
 
    /**
281
 
      Enables/disable/toggle the specified TIA bit.  Note that disabling a
282
 
      graphical object also disables its collisions.
 
273
      Enables/disable/toggle the specified (or all) TIA bit(s).  Note that
 
274
      disabling a graphical object also disables its collisions.
283
275
 
284
276
      @param mode  1/0 indicates on/off, and values greater than 1 mean
285
277
                   flip the bit from its current state
287
279
      @return  Whether the bit was enabled or disabled
288
280
    */
289
281
    bool toggleBit(TIABit b, uInt8 mode = 2);
290
 
 
291
 
    /**
292
 
      Enables/disables all TIABit collisions.
293
 
 
294
 
      @param mode  Whether to enable or disable all collisions
295
 
    */
296
 
    void enableCollisions(bool mode);
297
 
 
298
 
    /**
299
 
      Enables/disable/toggle the specified TIA bit collision.
 
282
    bool toggleBits();
 
283
 
 
284
    /**
 
285
      Enables/disable/toggle the specified (or all) TIA bit collision(s).
300
286
 
301
287
      @param mode  1/0 indicates on/off, and values greater than 1 mean
302
288
                   flip the collision from its current state
304
290
      @return  Whether the collision was enabled or disabled
305
291
    */
306
292
    bool toggleCollision(TIABit b, uInt8 mode = 2);
 
293
    bool toggleCollisions();
307
294
 
308
295
    /**
309
296
      Toggle the display of HMOVE blanks.
342
329
#endif
343
330
 
344
331
  private:
 
332
    /**
 
333
      Enables/disables all TIABit bits.  Note that disabling a graphical
 
334
      object also disables its collisions.
 
335
 
 
336
      @param mode  Whether to enable or disable all bits
 
337
    */
 
338
    void enableBits(bool mode);
 
339
 
 
340
    /**
 
341
      Enables/disables all TIABit collisions.
 
342
 
 
343
      @param mode  Whether to enable or disable all collisions
 
344
    */
 
345
    void enableCollisions(bool mode);
 
346
 
345
347
    // Update the current frame buffer to the specified color clock
346
348
    void updateFrame(Int32 clock);
347
349
 
615
617
    // The framerate currently in use by the Console
616
618
    float myFramerate;
617
619
 
 
620
    // Whether TIA bits/collisions are currently enabled/disabled
 
621
    bool myBitsEnabled, myCollisionsEnabled;
 
622
 
618
623
  private:
619
624
    // Copy constructor isn't supported by this class so make it private
620
625
    TIA(const TIA&);