Subversion Repository Public Repository


This repository has no backups
This repository's network speed is throttled to 100KB/sec

#include "Headers/NPC.h"
#include "AI/Headers/AIEntity.h"

namespace Divide {

NPC::NPC(SceneGraphNode* const node, AI::AIEntity* const aiEntity) : Character(Character::CHARACTER_TYPE_NPC, node),
    if (_aiUnit && !_aiUnit->getUnitRef()) {


void NPC::update(const U64 deltaTime){


Commits for Divide-Framework/trunk/Source Code/Dynamics/Entities/Units/NPC.cpp

Diff revisions: vs.
Revision Author Commited Message
331 Diff Diff IonutCava picture IonutCava Sat 06 Dec, 2014 20:53:45 +0000

- Limited line length to 132 characters to improve readability and diff-comparisons
- Refactored memory allocation/deallocation functions
- Fixed a few compatibility issues with HashMap.h
- Fixed a bug in GPU Skinning shaders (cast a float to int)

318 Diff Diff IonutCava picture IonutCava Sat 30 Aug, 2014 17:35:53 +0000

- Wrapped the entire code in a “Divide” namespace
- VertexBuffers now call “shrink_to_fit” on all internal data storage
- Improved some vector performance by preferring “emplace_back” instead of “push_back” + proepr usage of reserve / resize
- Wrapped OIS specific types and classes in Divide::Input namespace
- Added the messageBox.layout file (forgot it in the previous few commits)

311 Diff Diff IonutCava picture IonutCava Mon 18 Aug, 2014 21:40:52 +0000

- Added a basic AESOP implementation
- Moved all AI related classes under the “AI” namespace

247 Diff Diff k1ngp1n picture k1ngp1n Sun 16 Feb, 2014 16:36:06 +0000

[Ionut] [[BR]]
- Fixed VSM rendering [[BR]]
- Added Z-prePass as a separate render stage [[BR]]
- Added GL error checking and asserts to “Profile” builds [[BR]]
- Fixed bad XML material dump (invalid file name bug) [[BR]]
- Fixed random crashes [[BR]]
- Shadow cast/receive is now a node property, and not a material property [[BR]]
- Fixed an issue with previous RenderPassManager lock mechanism (clearing the queue on frame end to prevent infinite lock) [[BR]]
- Added depth buffer preview (F10 key) [[BR]]

229 Diff Diff k1ngp1n picture k1ngp1n Sun 12 Jan, 2014 16:37:32 +0000

[Ionut] [[BR]]
- AIEntity, NPC, Character and ActionList cleanups and shuffling around to keep in line with basic OOP principles and improve flexibility and expandability [[BR]]

221 Diff Diff k1ngp1n picture k1ngp1n Wed 08 Jan, 2014 18:50:02 +0000

[Ionut] [[BR]]
- Merged branch “Shadows And Animations” back into trunk [[BR]]
- Added DoxygenGUI project file [[BR]]

  • Buggy *
185 Diff Diff k1ngp1n picture k1ngp1n Sat 23 Nov, 2013 19:18:16 +0000

[Ionut] [[BR]]
- More AI <-> NavMesh/Crowd integration [[BR]]
- Fixed object selection [[BR]]
— Every SceneGraphNode that has the “_isSelectable” flag set to true can now be selected with the mouse and highlighted with increased ambient [[BR]]
- Various performance optimizations [[BR]]
- Slight shadow offset modification to reduce peter-panning [[BR]]
- Added a debug-only profiling (ProfileTimer) class (unused for now) [[BR]]

184 Diff Diff k1ngp1n picture k1ngp1n Mon 18 Nov, 2013 20:32:24 +0000

[Ionut] [[BR]]
- Added DetourCrowd code to the Character class [[BR]]

152 Diff Diff k1ngp1n picture k1ngp1n Thu 20 Jun, 2013 14:23:31 +0000

[Ionut] [[BR]]
- New rendering pipeline (experimental and unstable): [[BR]]
— OpenGL 3.x clean context (glLight commands are still used for now, but UBO support is there, but not used yet) [[BR]]
— Custom matrix stacks and UBO based shader data (UBOs cause some link errors on some nVidia cards)[[BR]]
— Multi-threaded texture loading and shader compilation (mt shader compilation disabled for now. needs more tests) [[BR]]
— VAO rendering is self contained (no more enable/disable calls before a draw request) [[BR]]
— Render instance class used for rendering information [[BR]]
- New unique ID generation base class: GUIDWrapper. Each class that derives from this, gets an application wide unique id on construction [[BR]]
- Added base code for an in-game editor using CEGUI [[BR]]
- Replaced some mutex locks with lockless data structures or atomic data [[BR]]
- CEGUI 0.8.2, FTGL-GL3 and GLIM 0.4 modified to support GLEW_MX if defined [[BR]]
- Dropped VS2008 support [[BR]]
- Networking library, server framework and ReCast files are now projects inside the Divide Framework solution [[BR]]
- New console command “setFov” that modifies the horizontal FoV value in realtime [[BR]]
- New console command “recompileShader” that reparses shader files, recompiles shaders and relinks shader programs who’s names match or contain the argument string [[BR]]
- New debug utility: axis angle drawn in corner of the screen if needed [[BR]]
- More ‘const’-s pasted around the code, more loop performance tweaks (allocations before a loop, tighter loops, etc), more utility member functions added to various classes [[BR]]

119 k1ngp1n picture k1ngp1n Fri 08 Jun, 2012 19:40:41 +0000

[Ionut] [[BR]]
-Reworked resolution change callbacks and render target resizing [[BR]]
-Changed Depth of Field o a proper “PreRenderOperator” [[BR]]
-AIManager is now created and started by the “Kernel” [[BR]]
-LightManager is now handled in the “Kernel”. Individual lights are still scene’s responsibility [[BR]]
-Added a “preLoad” method to scene’s used to setup the engine before loading any assets (eg: setting deferred mode) [[BR]]
-Fixed a small bug in sensor addition to “AIEntity” [[BR]]
-Fixed a bug related to refreshing VBO data [[BR]]
-Fixed a bug related to Bloom outputFBO not unbinding [[BR]]
-Scene’s “setInitialData()” is renamed to “loadXMLAssets()” and is automatically called before Scene’s “load()” is called [[BR]]