Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8055 in orxonox.OLD


Ignore:
Timestamp:
Jun 1, 2006, 1:10:46 PM (18 years ago)
Author:
bensch
Message:

trunk: new Playmode FirstPerson

Location:
trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/playable.cc

    r7954 r8055  
    502502  if (playmode == Playable::playmodeNames[3])
    503503    return Playable::Full3D;
     504  if (playmode == Playable::playmodeNames[4])
     505    return Playable::FirstPerson;
    504506
    505507  return Playable::Full3D;
     
    524526    case Playable::Full3D:
    525527      return Playable::playmodeNames[3];
     528    case Playable::FirstPerson:
     529      return Playable::playmodeNames[4];
    526530
    527531    default:
     
    538542  "Horizontal",
    539543  "FromBehind",
    540   "Full3D"
     544  "Full3D",
     545  "FirstPerson"
    541546};
  • trunk/src/world_entities/playable.h

    r7954 r8055  
    2929  //! Defines the Playmode of an Entity.
    3030  typedef enum {
    31     Vertical         = 1,       //!< Vertical (seen from left or right/move in x-z)
    32     Horizontal       = 2,       //!< Horizontal (seet from the top/move in x-y)
    33     FromBehind       = 4,       //!< Seen from behind (move in z-y)
    34     Full3D           = 8,       //!< Full featured 3D-mode. (move in all directions x-y-z)
     31    Vertical         =  1,       //!< Vertical (seen from left or right/move in x-z)
     32    Horizontal       =  2,       //!< Horizontal (seet from the top/move in x-y)
     33    FromBehind       =  4,       //!< Seen from behind (move in z-y)
     34    Full3D           =  8,       //!< Full featured 3D-mode. (move in all directions x-y-z)
     35    FirstPerson      = 16,
    3536
    36     PlaymodeCount    = 4,
     37    PlaymodeCount    =  5,
    3738  } Playmode;
    3839
Note: See TracChangeset for help on using the changeset viewer.