~ubuntu-branches/ubuntu/raring/simutrans/raring-proposed

« back to all changes in this revision

Viewing changes to dataobj/ribi.cc

  • Committer: Package Import Robot
  • Author(s): Ansgar Burchardt
  • Date: 2011-11-03 19:59:02 UTC
  • mfrom: (1.2.7)
  • Revision ID: package-import@ubuntu.com-20111103195902-uopgwf488mfctb75
Tags: 111.0-1
* New upstream release.
* debian/rules: Update get-orig-source target for new upstream release.
* Use xz compression for source and binary packages.
* Use override_* targets to simplify debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
355
355
        dir_invalid                     // alle
356
356
};
357
357
 
 
358
 
358
359
ribi_t::ribi ribi_typ(koord from, koord to)
359
360
{
360
361
        return ribi_typ(to - from);
361
362
}
362
363
 
 
364
 
363
365
ribi_t::ribi ribi_typ(hang_t::typ hang)   // nordhang -> sued, ... !
364
366
{
365
367
        return from_hang[hang];
387
389
}
388
390
 
389
391
 
390
 
 
391
392
ribi_t::ribi ribi_typ(koord3d from, koord3d to)
392
393
{
393
394
        return ribi_typ(to-from);
394
395
}
395
396
 
396
397
 
397
 
 
398
398
ribi_t::ribi ribi_typ(koord3d dir)
399
399
{
400
400
        ribi_t::ribi ribi = ribi_t::keine;
415
415
}
416
416
 
417
417
 
418
 
 
419
418
/* check, if two directions are orthogonal
420
419
 * works with diagonals too
421
420
 * @author prissi
422
421
 */
423
 
bool
424
 
ribi_t::ist_exakt_orthogonal(ribi x, ribi y)
 
422
bool ribi_t::ist_exakt_orthogonal(ribi x, ribi y)
425
423
{
426
424
        // for straight, we are finished here
427
425
        if(ist_gerade(x)) {
436
434
}
437
435
 
438
436
 
439
 
 
440
437
hang_t::typ hang_typ(koord dir)
441
438
{
442
439
        if(dir.x == 0) {