Exemple #1
0
 /// <summary>
 /// Inidicating whether the gridobject has the specified flags.
 /// </summary>
 /// <param name="flags">Set of the flags to check. Multiple flags should be write as 'Flag1 | Flag2 | Flag3 ...'.</param>
 /// <returns><c>true</c> if the gridobject has all the checked flags; otherwise, <c>false</c>.</returns>
 public bool HasFlags(GridObjectFlags flags)
 {
     return (flags & this.gridObjectsFlags) == flags;
 }
Exemple #2
0
        /// <summary>
        /// Initialized a new instance of the GridObject class.
        /// </summary>
        public GridObject()
        {
            pr_GridObjectState = GridObjectStates.Active;
            ObjectType = ObjectTypes.GridObject;
            this.gridObjectType = GridObjectTypes.GridObject;

            // Always in center of the cell
            Position = new GPS(Position, 25, 25);

            // Flags by default
            this.gridObjectsFlags = GridObjectFlags.Usable;
        }