Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7210


Ignore:
Timestamp:
Aug 24, 2010, 2:26:39 PM (14 years ago)
Author:
dafrick
Message:

Created new NotificationDispatcher. It just displays, upon being triggered, some predefined Notification message.

Location:
code/trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/levels/tutorial.oxw

    r7193 r7210  
    3939        </events>
    4040    </CommandNotification>
     41
     42    <SimpleNotification message="Awesome!!!">
     43        <events>
     44            <trigger>
     45                <DistanceTrigger name=trigger position="0,0,100" distance=10 target="Pawn">
     46                    <attached>
     47                        <Billboard position="0,0,0" colour="1.0,0,1.0" material="Examples/Flare" />
     48                    </attached>
     49                </DistanceTrigger>
     50            </trigger>
     51        </events>
     52    </SimpleNotification>
    4153 
    4254<Drone name="meineDrohne" primarythrust="80" auxilarythrust="10" rotationthrust="10" mass= "50" linearDamping = "0.9" angularDamping = "0.7">
  • code/trunk/src/modules/notifications/NotificationsPrereqs.h

    r7193 r7210  
    7373    //dispatchers
    7474    class CommandNotification;
     75    class SimpleNotification;
    7576}
    7677
  • code/trunk/src/modules/notifications/dispatchers/CMakeLists.txt

    r7193 r7210  
    11ADD_SOURCE_FILES(NOTIFICATIONS_SRC_FILES
    22  CommandNotification.cc
     3  SimpleNotification.cc
    34)
  • code/trunk/src/modules/notifications/dispatchers/CommandNotification.h

    r7193 r7210  
    5656            virtual ~CommandNotification(); //!< Destructor.
    5757
    58             virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a NotificationDispatcher object through XML.
     58            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a CommandNotification object through XML.
    5959
    6060            /**
Note: See TracChangeset for help on using the changeset viewer.